Unbalanced parantheses error in re.search in python

Viewed 23

I have two strings: string1 and string2 and I need to find the string2 start and positions in string1. But I am getting unbalanced parantheses error.How can I remove this unbalanced parantheses from the string?

match = re.search(string2, string1)
match.start()
match.end()

I wrote the code in the way mentioned above.

0 Answers
Related