Regular Expressions 101

Community Patterns

4

Phone number

PCRE (PHP <7.3)
no description available
Submitted by Mark Landry - 8 years ago
3

Cisco ASA

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 8 years ago
3

hj

PCRE (PHP <7.3)
hj
Submitted by hj - 8 years ago
3

currency

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 8 years ago

Windows file path regex with root, relative path, and (image) file extension matching.

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?P<Root>[A-Za-z]:(?:\/|\\))(?P<Relative>(?:(?:[^<>:"\/\\|?*\n])+(?:\/|\\))+)(?P<File>(?:[^<>:"\/\\|?*\n]+)(?:\.(?:png|jpg|jpeg)))$
/
gm

Description

Loading markdown...
Submitted by Holome - 7 months ago