Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-05-25 22:36
Flavor·Python

r"
\b(0?[1-9]|[12][0-9]|3[01])\b-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)
"
gmi
Open regex in editor

Description

Matching %d-%b date format with or without leading 0 in the day

Submitted by Justin Copeland