Regular Expressions 101

Community Patterns

nytimes project

0

Regular Expression
Python

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

Description

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

Submitted by anonymous - 5 years ago