Hi, How do I do a RegEx search and replace all the strings within last parenthesis set with blank? Thank you!
Example:
I am so excited (How so?) -> I am so excited
I am so excited (How so?) (Tell me more) -> I am so excited (How so?)
I am so excited (How so?) (Tell me more) (Is it because...) -> I am so excited (How so?) (Tell me more)
Solved! Go to Solution.
just a guess:
regex_replace[[stuff],"(.*)\(.*)\)(.*)",'$1(???)$3')
I wasn't so sure what blank means in your replacement but this should help.
cheers,
mark
Sorry I am a newbie and wasn't clear. Your solution should work. I tried a different expression using the end anchor and that worked too. Thank you. 🙂