Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can any one provide the regular expression that does not allow special char.
Posted
Updated 7-Jan-15 4:07am
v2
Comments
CHill60 7-Jan-15 10:08am    
Please do not use all capitals. It is considered shouting on the internet, childish and rude. I have corrected that for you
In response to your question, what have you tried? What do *you* mean by "special char"?
PIEBALDconsult 7-Jan-15 10:14am    
There are no "special" characters.
Sergey Alexandrovich Kryukov 7-Jan-15 12:05pm    
There is no such thing as "special" character, and no "any key" on keyboard. You can get help only if you specify exactly what you want to achieve.
—SA

1 solution

Of course, but you better specify which characters to allow - instead of which not to allow.

Look here: https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch04s08.html[^]

Here you can find many-many patterns: http://regexlib.com[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900