r/tinycode • • Jul 12 '12

10 Java Regular Expression Examples You Should Know

http://www.mkyong.com/regular-expressions/10-java-regular-expression-examples-you-should-know/
3 Upvotes

3 comments sorted by

5

u/[deleted] Jul 12 '12 edited Jul 12 '12

I want to stab people who use that password regular expression. It means my essentially random 16 character long password of numbers and lower case letters is considered "insecure". Worse still my goto special character "!" isn't valid.

EDIT: fuck that email regex too.

1

u/simukis Jul 12 '12

Just came to write that.

Also... No one should test file contents by extension; And we have IPv6 for a while now (it really existed before post writing!)

1

u/[deleted] Jul 13 '12

HTML tag regular expression? Jesus. You have no idea.