Regular Expressions 101

Community Patterns

5

ipv6

PCRE (PHP <7.3)
Match an ipv6 address
Submitted by Frusty - 7 years ago
9

only numbers

PCRE (PHP <7.3)
A string with only numbers in
Submitted by Gotts - 8 years ago

FileTimeStamp regex

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?<year>\d{4})(?<month>\d{2})(?<day>\d{2})-(?<hour>\d{2})(?<minutes>\d{2})(?<seconds>\d{2}).*$
/
gm

Description

Loading markdown...
Submitted by St├ęphane van Gulick - 5 months ago