Here is the problem. In this case how do I match string containing either "foo" or "bar".
a = 'foo'
b = 'bar'
string = 'The bar is closed'
reg = re.match(a + r"|" + b + r"(.*)", string)
Here is the problem. In this case how do I match string containing either "foo" or "bar".
a = 'foo'
b = 'bar'
string = 'The bar is closed'
reg = re.match(a + r"|" + b + r"(.*)", string)