stevet26
Programmer
- Feb 9, 2005
- 53
I have come up with a regular expression.
\w+\137+
This allows 'newFolder_' but not 'newFolder_New', 'newFolder_New_New' or just 'newFolder'
What I am trying to achive is regular expression which checks that only numbers, letters and _ have been used in the string. So, that all of the above examples would be accepted.
I have tried a number of combinations but I just can't work this out. Any help would be much appreciated.
Thanks in advance.
\w+\137+
This allows 'newFolder_' but not 'newFolder_New', 'newFolder_New_New' or just 'newFolder'
What I am trying to achive is regular expression which checks that only numbers, letters and _ have been used in the string. So, that all of the above examples would be accepted.
I have tried a number of combinations but I just can't work this out. Any help would be much appreciated.
Thanks in advance.