got a problem with two regular expressions in javascript.
I need one expression that matches, when my string contains no a-zA-Z. Like 12345.
Stuff like \W\S or [^a-zA-Z] is not working, cause it matches 123a etc.
Getting crazy with that one.
The other expression is the matching of two identical letters like the 'ss' in password.
(.)\1 is not working with javascript. In c# no problem. What am I doing wrong with that one?
Made a section in my web.config which defines password-rules and in my code (c#, asp.net 3.5) I am reading the rules to create javascript for the client.
Thanks for help
(.)\1works for me to find two consecutive matching characters. .../(.)\1/.test("password"); // true.../(.)\1/.test("pasword"); // false