String to regex converter python. match implicitly matches on the start of the string.