Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 02:38 AM
Hi Team,
I have created a Validation Regex for the one of the single line text variable, but it was giving error when I enter the correct expression as well. I am checking for alphanumeric with hyphens in between. Below is the code using.
Validation Regex
Result form above validation
Error popping up for correct values as well.
Thanks,
Prudhvi
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 04:15 AM
Hi @Prudhvi Raj4 ,
Please try below regex
^(?:[A-Za-z0-9]{4}-){5}[A-Za-z0-9]{0,4}$
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 04:15 AM
Hi @Prudhvi Raj4 ,
Please try below regex
^(?:[A-Za-z0-9]{4}-){5}[A-Za-z0-9]{0,4}$