Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-07-11 19:34
Flavor·Python

r"
(?<=\d{4}\/\d{2}\/\d{2}\/)\w+\-?\w?\/?\w+\/
"
gm
Open regex in editor

Description

str = str[:-1] split on "/" if "/" in str

Submitted by anonymous