- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2021 07:30 AM
Hi All.
I have one variable (Type - single line text) and I need Regex Pattern which allow only 4 digit (number) in this field
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2021 07:35 AM
To match exactly 4 digits:
/^\d{4}$/
^\d{4}$
Not more then 4:
/^\d{0,4}$/
^\d{0,4}$

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 12:44 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 03:15 PM
need help in creating a regex validation to accept number from 300 to 500 on service catalog variable.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 10:47 PM
Hello @sparkles
Good Morning,
You can use below regex to validate numbers from 300 to 500 on service catalog variable.
- /^[3-4][0-9][0-9]$|^500$/
Note: You can use 'if loop' to validate the same.
If this helped you in any way, please hit the like button/mark it helpful. So it will help others to get the correct solution.
Regards,
Prasad