Generate from pattern
This function generates a value based on a user-defined pattern.
This function is applied only on Strings.
Option | Description |
---|---|
Extra parameter |
This function requires an extra parameter.
The extra parameter is a pattern that follows those rules:
All other characters are copied to the generated value as is. For more information about the supported character types and the related Unicode ranges, see Data masking functions in the masking components. You can also use numbered backreferences (\\<number>) using the following syntax: <pattern>\\<number>,<group1>,<groupN>.
If you want to copy a character used in patterns (A, a, 9, H, h, K, k, C, G) as is in the generated value, use a backreference. |
This function does not work correctly if a comma ',' is used in the pattern.
- a characters are replaced with random Latin lowercase letters.
- s characters are not masked in the generated output.
- \\2 calls the group placed after the second "," character, which is @talend.com.
Input value | Extra parameter | Example of a masked value |
---|---|---|
A26 | "aaaass\\2,@gmail.com,@talend.com" | hjdfss@talend.com |
- \\3 calls the group placed after the third "," character, which is a.
- 9 characters are masked with random digits.
Input value | Extra parameter | Example of a masked value |
---|---|---|
A26 | "\\39999,D,Z,a" | a4825 |