Some Regular Expression (RegEx) Syntax Worth To Used

Name Checker

/^([a-zA-Z0-9_\.\-]+)@([a-zA-Z0-9_\.\-]+)\.[a-zA-Z]{2,8}$/

Email Validation

/^([a-zA-Z0-9_\.\-]+)@([a-zA-Z0-9_\.\-]+)\.[a-zA-Z]{2,5}$/

Phone Number Validation

/^\(?\d{3}\)?[-.]?\d{3}[-.]?\d{4}$/

Zip Number Validation

/^[0-9]{5}(-[0-9])?$/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Handhika Yanuar Pratama

Handhika Yanuar Pratama

A Stoic Developer || Junior Data Engineer || Dreamer