Regular Expressions 101

Remove Text after Parenthesis

Open Workspace
  • PCRE (Legacy)
  • Substitution
0

Regular Expression

/
\).*$
/
gm

Description

/ ).$ / gm ) matches the character ) literally (case sensitive)

. matches any character (except for line terminators)

  • matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy) $ asserts position at the end of a line
Submitted by Dan