Regular Expressions 101

Sponsors

Library entries

0
pcre2

ISO style date

yyyy/mm/dd
Submitted by Russ Ferriday - from a Docusign template - a year ago
1
pcre2

UK style date

dd/mm/yyyy
Submitted by Russ Ferriday, from Docusign templates - a year ago
1
golang

SQL comments Big Query

SQL comments on Big Query
Submitted by anonymous - a year ago
1
pcre2

Phone Number E.164

Starts with + from 8 digits until 15
Submitted by Sear Lopez - a year ago
1
pcre2

Regex

Match an element from a list
Submitted by anonymous - a year ago
1
pcre2

IPV4 Address Identificate

Regex to identificate a IPV4 Address
Submitted by Pablo Deyvid - a year ago
2
pcre2

Check Phone numbers

Other patterns
Submitted by https://joserobinson.com - a year ago
1
pcre2

Jira

Jira
Submitted by anonymous - a year ago
1
pcre2

Email

[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,3}$
Submitted by Mykola Buhaiov - a year ago
1
pcre2

Test expression

To find at most 3 a in string
Submitted by anonymous - a year ago
1
pcre2

Email Verification

PHP REGEX to verify an email.l
Submitted by anonymous - a year ago
1
pcre2

us phone number validation

us phone number validation
Submitted by anonymous - a year ago

Cron regex

Vote

0

Regular Expression
pcre2

/
^\s*($|#|\w+\s*=|(\?|\*|(?:[0-5]?\d)(?:(?:-|\/|\,)(?:[0-5]?\d))?(?:,(?:[0-5]?\d)(?:(?:-|\/|\,)(?:[0-5]?\d))?)*)\s+(\?|\*|(?:[0-5]?\d)(?:(?:-|\/|\,)(?:[0-5]?\d))?(?:,(?:[0-5]?\d)(?:(?:-|\/|\,)(?:[0-5]?\d))?)*)\s+(\?|\*|(?:[01]?\d|2[0-3])(?:(?:-|\/|\,)(?:[01]?\d|2[0-3]))?(?:,(?:[01]?\d|2[0-3])(?:(?:-|\/|\,)(?:[01]?\d|2[0-3]))?)*)\s+(\?|\*|(?:0?[1-9]|[12]\d|3[01])(?:(?:-|\/|\,)(?:0?[1-9]|[12]\d|3[01]))?(?:,(?:0?[1-9]|[12]\d|3[01])(?:(?:-|\/|\,)(?:0?[1-9]|[12]\d|3[01]))?)*)\s+(\?|\*|(?:[1-9]|1[012])(?:(?:-|\/|\,)(?:[1-9]|1[012]))?(?:L|W)?(?:,(?:[1-9]|1[012])(?:(?:-|\/|\,)(?:[1-9]|1[012]))?(?:L|W)?)*|\?|\*|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(?:(?:-)(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?(?:,(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(?:(?:-)(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC))?)*)\s+(\?|\*|(?:[0-6])(?:(?:-|\/|\,|#)(?:[0-6]))?(?:L)?(?:,(?:[0-6])(?:(?:-|\/|\,|#)(?:[0-6]))?(?:L)?)*|\?|\*|(?:MON|TUE|WED|THU|FRI|SAT|SUN)(?:(?:-)(?:MON|TUE|WED|THU|FRI|SAT|SUN))?(?:,(?:MON|TUE|WED|THU|FRI|SAT|SUN)(?:(?:-)(?:MON|TUE|WED|THU|FRI|SAT|SUN))?)*)(|\s)+(\?|\*|(?:|\d{4})(?:(?:-|\/|\,)(?:|\d{4}))?(?:,(?:|\d{4})(?:(?:-|\/|\,)(?:|\d{4}))?)*))$
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago