Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 04:26 AM
Hi All,
I am using regex to get a alphanumeric value from a string . The regex i used is [A-Za-z0-9] . Please help me on this .
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 04:37 AM
Hi @kali ,
Do you want to validate a string is alphanumeric or not, Is that right?
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 04:39 AM - edited 06-26-2024 04:41 AM
Try the below:
Alphanumeric RegEx || Prevent two consecutive characters
Field validation: Regular Expressions
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 04:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 05:58 AM
Hi @Community Alums ,
In background script i run the below code
var subject ="This is a sample case for 123AZBzxc";
var rg = new RegExp("^[a-zA-Z0-9]");
rg.match(subject);
gs.print(rg); After running the script i am not getting this value 123AZBzxc. Please help me on this.