Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

dogknob

(2,431 posts)
3. EDITED: might be done with this now.
Sun May 4, 2014, 05:18 PM
May 2014
http://regexr.com/38pua

I kept your improvements to the date group; nothing wacky will get in and it addresses my tendency to sometimes type '2104' .

checkdate() will kick out bogus dates.

I made what I think are some substantial improvements to the name and city groups. I also included a full description of what the regex is supposed to do (and not do) at the new link above.

Thanks so much for your help. This is the first time I've ever sat down and written a regex from scratch... and that website is the best one I have seen so far for testing.

Recommendations

0 members have recommended this reply (displayed in chronological order):

Not sure if it's critical ChromeFoundry May 2014 #1
Ooooo! dogknob May 2014 #2
EDITED: might be done with this now. dogknob May 2014 #3
Here is an alternative RegEx tester ChromeFoundry May 2014 #4
Dude! the colors! dogknob May 2014 #5
Got a bit more fat trimmed off of it. dogknob May 2014 #6
Latest Discussions»Retired Forums»Website, DB, & Software Developers»It's 7:18am on Sunday mor...»Reply #3