Solved: 7 Years, 11 Months ago Regular Expression Question
#1
Solved: 7 Years, 11 Months ago
So, I'm making Birth dates mandatory and want to show the format that users will need to use.

05/30/1974

How would I make that into a "Regular Expression"?

Thanks so much in advance..

J.
Reply
#2
Solved: 7 Years, 11 Months ago
http://stackoverflow.com/a/15504877
Reply
#3
Solved: 7 Years, 11 Months ago
Not sure I understand.

So I tried entering one of the provided formulas from the link you supplied(see below) in the Regular Expression box field on the Edit Profile page and still get the same error message...

"Please correct the following errors before continuing:

You did not enter a valid value for the "Birthday" field. Please enter a valid value before continuing."

"^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.]((19|20)\\d\\d)$"

What might I be doing wrong?

Thanks in advance..

J.
Reply
#4
Solved: 7 Years, 11 Months ago
I linked a specific regex, did you try it?

Anyways, I don't see any point of using a textbox profile field, you can use this plugin instead: http://mods.mybb.com/view/date-of-birth-on-registration
Reply
#5
Solved: 7 Years, 11 Months ago
Thanks man as I appreciate the detailed instructions..

Hadn't used Plugins before and now I know how to do it..

First Templates and now Plugins..awesome.

Thanks again for quick replies...

J.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)