Fields with * are mandatory

Dios - Do It Open Source
 

Regex validation


Phone validation


/^0+2|3|7+[0-9]{2}+[-\s]+[0-9]{6}+$/
This expression will validate phone number like 02xx-xxxxxx or 03xx-xxxxxx or 07xx-xxxxxx .

Email validation


'/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i'

Firstname and Lastname validation


'/^[A-Z][a-z]{1,}([-\s][A-Z][a-z]+){1,}+$/'
 
This expresion will validate names like: Xx Xx, Xx Xx-Xx. Firstname and Lastname must contain at least 2 characters and can contain - sign. First letter of firstname and Lastname must be capitalized.



Add comment
Citation will be added automatically at the top of your message!