- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2023 11:36 AM
I need to create a validation Regex in the service catalog variable that only allows letters and the symbol - ,
I tried several possibilities without success.
I appreciate any help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2023 12:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2023 12:59 PM
This one will match only ASCII letters and the dash symbol:
/[A-Za-z-]/g
If you need to include any special characters, just add them to the character-set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2023 12:56 PM
Try [a-z\-]+ with the Case Insensitive flag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 04:11 AM
Brad, thanks for the valuable help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2023 12:59 PM
This one will match only ASCII letters and the dash symbol:
/[A-Za-z-]/g
If you need to include any special characters, just add them to the character-set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 04:12 AM
Laszlo, thanks for the valuable help!