Regular Expressions 101

Community Patterns

Add quotes around unquoted dates

0

Regular Expression
Python

r"
(\d{1,2}\/\d{1,2}\/\d{2})
"
gm

Description

Used this for a lab in my R class. We copied and pasted WHAS 500 data. The the data values in the raw data do not have quotes around them.

Submitted by anonymous - 4 years ago