Regular Expressions 101

Community Patterns

1

pmsa_docx_replace

PCRE2 (PHP >=7.3)
pmsa_docx_replace
Submitted by anonymous - 2 days ago
1

http(s) address

PCRE2 (PHP >=7.3)
simple http(s) patter
Submitted by lhotakj - 2 days ago
1

my

PCRE2 (PHP >=7.3)
replace first line and second
Submitted by MH - 4 days ago
1

Parser

PCRE2 (PHP >=7.3)
for mail
Submitted by anonymous - 5 days ago
1

amp;

PCRE2 (PHP >=7.3)
subtitui
Submitted by seidao - 12 days ago
1

números html

PCRE2 (PHP >=7.3)
numeros
Submitted by anonymous - 15 days ago
1

select report

PCRE2 (PHP >=7.3)
select report
Submitted by H.Nasirii - 15 days ago

Date: DD-MM-YYYY hh:mm:ss

18

Regular Expression
Recommended
PCRE (PHP <7.3)

/
^(0[1-9]|1\d|2[0-8]|29(?=-\d\d-(?!1[01345789]00|2[1235679]00)\d\d(?:[02468][048]|[13579][26]))|30(?!-02)|31(?=-0[13578]|-1[02]))-(0[1-9]|1[0-2])-([12]\d{3}) ([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$
/
gm

Description

Loading markdown...
Submitted by Ka. - 10 years ago