Regular Expressions 101

Sponsors

Library entries

0
java

fdsf

sdf
Submitted by anonymous - 7 months ago
0
java

id card

打断点
Submitted by anonymous - 7 months ago
0
java

Mpe

coda test
Submitted by anonymous - 7 months ago
0
python

SoundsExtract

extract sounds
Submitted by anonymous - 7 months ago
0
java

Match CLI argument to

Matches argumetn to as: -t to -t= ...
Submitted by rperez-torro - 7 months ago
0
java

java-test1

java test string
Submitted by anonymous - 7 months ago
0
python

Find two matching group

Find two matching groups
Submitted by anonymous - 7 months ago
0
java

Hitech RTOZONE

Checks the registration number's validity
Submitted by Sid - 7 months ago
0
python

Yandex music track regex

Regex for yandex music track
Submitted by anonymous - 7 months ago
0
python

month with year extraction

ready code
Submitted by anonymous - 7 months ago
0
java

Remove duplicate lines in sorted text

See
Submitted by @atnbueno - 6 months ago

Date & time regex test

Vote

0

Regular Expression
python

"
(?:(?P<EngDate>[a-zA-Z]+\s)??(?P<Date0>(?<!\.)(?:\d{1,2}(?=[,\s.\/-])|\d{4}))\.??(?(1),?)(?P<d_sep>[\s.\/-])?(?:(?P<Date1>[^\W\d_]+|\d{1,2})(?P=d_sep))?(?(1)[0-2]?\d(?::\d{2}){1,2}\s\w+\s)(?P<Date2>\d{2}|\d{4})(?!:|\d))|(?P<Time>(?<![\+-0])[0-2]?\d(?:\:[0-6]\d){1,2}(?:[,\.]\d{3,6})?)
"
g

Description

Loading markdown...
Submitted by anonymous - 2 years ago