Regular Expressions 101

Get text after parenthesis.

Open Workspace
  • Python
  • Match
1

Regular Expression

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