Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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}

sachincalsoft
Tera Contributor

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

output can be any random value which satisfies the given regex.

As discussed given regex can be of any complex type