I have a string
Some sentance startx here blah blah [Example](https://someSite.com/another/blah/blah)
and I want this string to become this one:
Some sentance startx here blah blah Example
I have tried this regex:
"[\[\]]\(\S*(https|http)*\.(ru|com)\S*"
but I get this:
Some sentance startx here blah blah [Example
The code:
pattern = r"[\[\]]\(\S*(https|http)*\.(ru)\S*"
text = re.sub(pattern, '', text)