I tried this but it doesn't work
return re.sub('([^)]*)','', myResultStats.text)
suggestions?
thanks
Try this:
return re.sub('\(.*?\)','', myResultStats.text)
Parentheses denote capture groups, so you have to escape them.
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