Click here to Skip to main content
16,011,947 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi
I want a regularfield expression for password which allows alphanumeric characters with one special characters

thanks
Posted
Comments
Sergey Alexandrovich Kryukov 15-Jan-12 12:39pm    
Why?
--SA

1 solution

Not a good regular expression problem (it's the "one special character" bit - Regexes aren't good at counting so it would be a case of having a lot of possible matches, with at least one special character in each position. Not nice to create, not nice to maintain.

I would strongly suggest that you use code instead, if you can - some tasks just shouldn't be forced into a regex!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Jan-12 13:25pm    
Agree, this is actually a bad idea to use Regex. My 5.
--SA

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