Table of Contents

Search

  1. Preface
  2. Introduction to Test Data Management
  3. Test Data Manager
  4. Projects
  5. Policies
  6. Data Discovery
  7. Creating a Data Subset
  8. Performing a Data Masking Operation
  9. Data Masking Techniques and Parameters
  10. Data Generation
  11. Data Generation Techniques and Parameters
  12. Working with Test Data Warehouse
  13. Analyzing Test Data with Data Coverage
  14. Plans and Workflows
  15. Monitor
  16. Reports
  17. ilmcmd
  18. tdwcmd
  19. tdwquery
  20. Data Type Reference
  21. Data Type Reference for Test Data Warehouse
  22. Data Type Reference for Hadoop
  23. Glossary

Numeric Data Pattern Examples

Numeric Data Pattern Examples

You want to generate credit card numbers, phone numbers, Social Insurance numbers, and Social Security numbers from regular expressions.
To generate a 10-digit phone number, consider the following scenarios:
  • A phone number that starts with 3 or 4, you enter the data pattern as (3|4)\d{9}.
  • A phone number that starts with 6 and consists of digits such as 2,4,6, and 8, you enter the data pattern as 6(2|4|6|8){9}.
  • A phone number that starts with 6 and consists of digits between 3-7, you enter the data pattern 6 [3-7]{9}.
The following table shows the sample output for the patterns that you can enter:
Example
Pattern
Credit card number
You enter the pattern as 5\d{15} to generate a sample output as 5312003654360876.
Phone number
You enter the pattern as \d{10} to generate a sample output as 6175551212.
Social Insurance number
You enter the pattern as \d{9} to generate a sample output as 289645236.
Social Security number
You enter the pattern as \d{9} to generate a sample output as 999999999.