Regular Expressions 101

Community Patterns

Email Parse City with Colon (City: )

0

Regular Expression
Python

r"
City: (?P<city>.*)
"
gm

Description

For getting the value after “City: “ in a block of text

Submitted by QuickRegEx - 3 years ago