Regular Expressions 101

Community Patterns

0

valid path

PCRE2 (PHP >=7.3)
valid path
Submitted by anonymous - 5 months ago
0

camel-assistnt resp

Python
camel-assistnt resp
Submitted by anonymous - 4 months ago
0

CHECK

PCRE2 (PHP >=7.3)
CHECK
Submitted by vishnu - 4 months ago
0

Aspnetzero

PCRE2 (PHP >=7.3)
Aspnetzero
Submitted by anonymous - 4 months 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