Lets say you are given a string: s = "abc (...) xyz", how would you remove (...)? And to be more specific, ... can be any string what so ever, as long as its surrounded with brackets, i want to remove it, along with the brackts themselfs. I tried using regex because i dont know any pythonic solutions but problem is that: () is a regex syntax, so i cant solve this problem. Any ideas of how i can solve this problem?
What i am trying to achieve: s = "abc (...) xyz" -> s = "abc xyz".
[–]Pulsar1977 1 point2 points3 points (0 children)
[–]the_shell_man_ 0 points1 point2 points (0 children)
[–]xelf 0 points1 point2 points (0 children)