Need code to generate random value from any type of regex [ eg:[A-Za-z0-9]@[A-Za-z0-9].[A-Za-z]{2,3}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 03:59 AM
Hi team,
I need help to write a script in ServiceNow which will generate random value which will satisfy the give regex of any type.
Regex can be alpha numeric or or any format.
Example of the regex: [A-Za-z0-9]@[A-Za-z0-9].[A-Za-z]{2,3}
Please help
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 04:54 AM
output can be any random value which satisfies the given regex.
As discussed given regex can be of any complex type