Can someone help me with a regex that will catch the following:
It's going to me done in javascript.
here's what i have so far -
var title = $(this).find('title').text().replace(/\w+\s+\(.*?\)/, "");
It seems to be catching some chars outside of the parenthees though.
This deals with matching between parens, and only at the of the string: \([^(]*\)\s*$
. If the parens might be nested, you need a parser, not a regular expression.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With