I have text string like:
"abcd[e]yth[ac]ytwec"
I need just
"abcdythytwec"
What is the easiest way to do it using regex or otherwise in python? I am using .split('[') method which is cumbersome.
I have text string like:
"abcd[e]yth[ac]ytwec"
I need just
"abcdythytwec"
What is the easiest way to do it using regex or otherwise in python? I am using .split('[') method which is cumbersome.