我有一根绳子
Some sentance startx here blah blah [Example](https://someSite.com/another/blah/blah)
个
我希望这根弦变成这根:
Some sentance startx here blah blah Example
个
我试过这个正则表达式:
"[\[\]]\(\S*(https|http)*\.(ru|com)\S*"
个
但我明白:
Some sentance startx here blah blah [Example
个
代码:
pattern = r"[\[\]]\(\S*(https|http)*\.(ru)\S*"
text = re.sub(pattern, '', text)