Kreatus (Ubot Ninja) 422 Posted March 30, 2011 Report Share Posted March 30, 2011 Hi regex experts, How can I match all of these 3 with one regex pattern? It maybe easy but I cant figure it out.. 35dsal$)23 dsa3$(4311 $dsa(242)4 Thanks! Quote Link to post Share on other sites
JohnB 255 Posted March 30, 2011 Report Share Posted March 30, 2011 Kreatus, are those the only patterns? (and are they exactly like that?) Or will the characters vary, etc? John Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 30, 2011 Author Report Share Posted March 30, 2011 Kreatus, are those the only patterns? (and are they exactly like that?) Or will the characters vary, etc? John The characters may vary john.. They're account passwords.. Quote Link to post Share on other sites
JohnB 255 Posted March 30, 2011 Report Share Posted March 30, 2011 what about the length? Is that constant? Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 30, 2011 Author Report Share Posted March 30, 2011 Im not sure. Maybe it can exceed to 2 or 3 more characters.. Quote Link to post Share on other sites
JohnB 255 Posted March 30, 2011 Report Share Posted March 30, 2011 ok, try this for starters...if it needs tweaking, we can do that. \A[\w\W]{10,13}$ John Note: this simply matches any combination of word and non-word characters between 10 and 13 in length) Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 30, 2011 Author Report Share Posted March 30, 2011 Hi John I tried it in editpad but that match this code 35dsal$)23 only.. Quote Link to post Share on other sites
JohnB 255 Posted March 30, 2011 Report Share Posted March 30, 2011 oops...try this: ^[\w\W]{10,13}$ John 1 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 30, 2011 Author Report Share Posted March 30, 2011 Thanks John it works! +1 Quote Link to post Share on other sites
UBotBuddy 331 Posted March 30, 2011 Report Share Posted March 30, 2011 Seems like overkill for passwords. I compare it to add 1 + 1 using a calculator. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 30, 2011 Author Report Share Posted March 30, 2011 Seems like overkill for passwords. I compare it to add 1 + 1 using a calculator. This site dreamblogs.org/ assign passwords like that. This password 6FyKlxwG$l$) is exactly what I got from them. Quote Link to post Share on other sites
JohnB 255 Posted March 30, 2011 Report Share Posted March 30, 2011 Oh...web app passwords are the worst! lol Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.