Regular Expressions 101

Community Patterns

Get text after parenthesis.

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 - 5 months ago