Regular expression to validate strings
-
All, I am looking for a regular expression for a string to allow alphabets ,digits and only special characters like underscore(_) and blank space. i tried using [0-9a-zA-Z]+$ but it accepts only digits and alphabets which is stops my functionality. my string should accept only _ and blank space no more special characters....... can some one suggest me the proper regular expression? Thanks, Mukkanti.
Thanks Mukkanti
-
All, I am looking for a regular expression for a string to allow alphabets ,digits and only special characters like underscore(_) and blank space. i tried using [0-9a-zA-Z]+$ but it accepts only digits and alphabets which is stops my functionality. my string should accept only _ and blank space no more special characters....... can some one suggest me the proper regular expression? Thanks, Mukkanti.
Thanks Mukkanti
[0-9a-zA-Z_\s]+$ I think should work, unless _ is a control character (I haven't had my coffee yet, so my mind isn't working well :D).
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
-
All, I am looking for a regular expression for a string to allow alphabets ,digits and only special characters like underscore(_) and blank space. i tried using [0-9a-zA-Z]+$ but it accepts only digits and alphabets which is stops my functionality. my string should accept only _ and blank space no more special characters....... can some one suggest me the proper regular expression? Thanks, Mukkanti.
Thanks Mukkanti
Here is a website regarding regular expression. Maybe you can find what you want. http://regexlib.com/[^]
Welcome to www.softwaretree.net! You can find many excellent audio/video converter tools there!