Regular Expressions 101

Sponsors

Library entries

0
java

CDATA Matcher

Matches CDATA sections while disallowing nesting
Submitted by anonymous - 2 months ago
1
javascript

array path

Extract the array path from a nested path
Submitted by anonymous - 2 months ago
0
javascript

replace text in tag

find and replace text in tag
Submitted by anonymous - 2 months ago
0
javascript

only .ts .tsx .js .jsx

get files extension
Submitted by HZ - 2 months ago
0
javascript

Get YouTube ID in link

regex for get video id in link
Submitted by anonymous - 2 months ago
0
javascript

Email regex

email regex with subdomain
Submitted by anonymous - 2 months ago
0
golang

Golang Docker matcher

Used by me for docker-retagger
Submitted by Roman Minebaev - 2 months ago

Regular expression for capturing dates and date ranges.

Vote

1

Regular Expression
java

"
((?:\d{1,2}-)?\d{1,2})(?:st|nd|rd|th)?[ ./-](feb|\d{1,2})(?:[ ./-](\d{2,4}))?|(feb|\d{1,2})[ ./-]((?:\d{1,2}-)?\d{1,2})(?:st|nd|rd|th)?(?:[ ./-](\d{2,4}))?
"
igm

Description

Loading markdown...
Submitted by Matey Krastev - 3 months ago