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. Appendix A: Data Type Reference
  21. Appendix B: Data Type Reference for Test Data Warehouse
  22. Appendix C: Data Type Reference for Hadoop
  23. Appendix D: Glossary

Regular Expression Syntax

Regular Expression Syntax

A regular expression contains characters that represent source character types, source character sets, and string or word boundaries in the source columns. A regular expression can also contain quantifiers that determine how many times characters can occur in the source data. Regular expressions are case sensitive.
The following special characters are examples of characters that you can include in a regular expression:
Any character except [\^$.|?*+()
All characters except the listed special characters match a single instance of themselves. For example,
abc
always matches
abc.
\ (backslash) followed by any of the following special characters:
[\^$.|?*+(){}
A backslash escapes any special character in a regular expression, so the character loses the special meaning.
* (asterisk)
Matches the preceding token zero or more times.
[ (left bracket)
Marks the beginning of specifications for one character that you want to match.
- (hyphen)
Specifies a range of characters. For example, [a-zA-Z0-9] matches any letter or digit.
] (right bracket)
Marks the end of the specifications for one character.
? (question mark)
Makes the preceding item optional.
{n} where n is an integer > = 1
Repeats the previous item n times.
For information about creating regular expressions, see tutorials and documentation for regular expressions on the internet such as http://www.regular-expressions.info/tutorial.html.