July 26th, 2012, 07:48 AM
I wish to validate a form field so the content is in a specific format.
The format I wish it to be in is firstname underscore surname underscore number.
Can anybody help with the correct RegEx to meet this formatting.
Thanks in advance
July 26th, 2012, 08:17 AM
It's also not clear what the names will look like. Does everything have to be lowercase like your example suggests? Do you allow special characters like in "Raśl"? What about middle names and things like "Jr."?
You know, not every name is as simple as "John Smith".
July 26th, 2012, 10:48 AM
July 26th, 2012, 09:22 PM
July 27th, 2012, 12:18 AM
benno32, it should be + instead of * if you don't want to allow an empty first name / surname:
Comments on this post