Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(?<=\)\s).*
"
gm

Description

This regular expression helps to get the strings of a line that comes after a parenthesis and a blank space. Could be useful with lines of text with or similar format of the APA citation style: Author (year) title

Submitted by anonymous - a year ago