JB8
Giga Expert
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 04-15-2021 12:24 PM
This is something adding for people I've seen struggling to get the exact RegEx to refer specially in case of Alphanumeric String Validation that's not accepting two consecutive characters/numbers.
Even I've added one to get refer in case of Special Characters and can make it work accordingly.
RegEx Pattern : /([a-zA-Z0-9])\1(?=[a-zA-Z0-9]){0,}/g
Can add with Special Characters too : /([a-zA-Z0-9@!#$%^&*])\1(?=[a-zA-Z0-9]){0,}/g
Hope this will help some of you guys in some ways to make things easy. Thanks
Labels:
- 3,238 Views