I am trying to match a set of strings that follow a certain pattern using re. However, it fails at some point.
Here are the strings that fails
string1=