Table of Contents

Search

  1. Preface
  2. Introduction to Test Data Management
  3. Test Data Manager
  4. Projects
  5. Policies
  6. Data Discovery
  7. Data Subset
  8. Data Masking
  9. Data Masking Techniques and Parameters
  10. Data Generation
  11. Data Generation Techniques and Parameters
  12. Working with Test Data Warehouse
  13. Plans and Workflows
  14. Monitor
  15. Reports
  16. ilmcmd
  17. tdwcmd
  18. tdwquery
  19. Data Type Reference
  20. Data Type Reference for Test Data Warehouse
  21. 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.