Reputation: 693
I need the following regular expression:
0-9
(123 for example is 3 numbers)ú
(One ú
exactly)# } .
I try the following regular expression:
/^(?=.*[A-Za-z]{3,})(?=.*[a-z]{1,})(?=.*[0-9]\d{0,3})(u{1})[A-Za-z0-9\d]{9,12}$/
One example valid: aA2ca13ú}
Upvotes: 0
Views: 297
Reputation: 18357
You can use this regex that should meet your requirements,
^(?=[^A-Za-z]*(?:[A-Za-z]+[^A-Za-z]*){3,})(?=\D*\d?\D*\d?\D*\d?\D*$)(?=[^ú]*ú[^ú]*$)[úa-zA-Z\d-]{8,11}[#}.]$
Let me know if any of your case fails.
Upvotes: 2