ProclaimDragon Posted October 15, 2004 Share Posted October 15, 2004 I barely understand regular expressions and I'm need of creating 2 of them... 1) Validate a string wich cannot have any of the following characters: \ / : * ? " < > | (file/folder names) 2) Validate a string where can only have alphanumeric characters (uppercase and lower case) Any one can help me? Link to comment Share on other sites More sharing options...
0 +primortal Subscriber² Posted October 15, 2004 Subscriber² Share Posted October 15, 2004 This is great site for finding regex patterns http://www.regexlib.com/Search.aspx?k=alphanumeric Link to comment Share on other sites More sharing options...
0 Mouton Posted October 15, 2004 Share Posted October 15, 2004 1. See posted link. 2. ^[^\\/:\*\?"<>\|]+$ If not match is found, string is bad. If it match, it's ok. Link to comment Share on other sites More sharing options...
0 ProclaimDragon Posted October 15, 2004 Author Share Posted October 15, 2004 I'ts the other way around Mouton :p Thank you both, That site is goin go my bookmarks :) Link to comment Share on other sites More sharing options...
Question
ProclaimDragon
I barely understand regular expressions and I'm need of creating 2 of them...
1) Validate a string wich cannot have any of the following characters: \ / : * ? " < > | (file/folder names)
2) Validate a string where can only have alphanumeric characters (uppercase and lower case)
Any one can help me?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts