Suppose, I have two strings:
A = 'Ecology (miscellaneous)'
B = 'Ecology (miscellaneous)'
I want to find whether they match or not using regular expressions.if (A == B)
works fine, but, I want to use regex.
re.match (A,B)
This does not work because of small brackets in the string. What is the best way to do it?. I am not used to with regular expressions; I am learning.