Skip to content
/ regex Public

Some of most useful Regular Expressions for Developers

Notifications You must be signed in to change notification settings

hunken/regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

WHAT IS REGEX?

Please read this article to understand about regex

Regex validate email example

alt text

Tool for test Regex

  • Regex101.com : Include tool test, sample regex and some , you can login, create regex and save your Regex, public and share to your friend.
  • Regexr.com : Amazing UI

MARKDOWN FOR WEB DEVELOPER

Regex for validate Viet Nam Phone number

/^((01[2689]|088|09)|(([\+]{0,1}84)(1[2689]|88|9)))[0-9]{8}$/

Regex for validate USA Phone number

/^\+?\d{1,3}?[- .]?\(?(?:\d{2,3})\)?[- .]?\d\d\d[- .]?\d\d\d\d$/

Regex for validate Youtube URL

/https?:\/\/(?:youtu\.be\/|(?:[a-z]{2,3}\.)?youtube\.com\/watch(?:\?|#\!)v=)([\w-]{11}).*/gi

Regex for validate Facebook URL

/(?:http:\/\/)?(?:www\.)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/

Validate email

 /[A-Z0-9._%+-]+@[A-Z0-9-]+.+.[A-Z]{2,4}/

Twitter ID

/@([A-Za-z0-9_]{1,15})/

To be continue ...

Releases

No releases published

Packages

No packages published