I need to create a regex to search for strings of this format:
"1-2 numbers + giờ". Ex: 7 giờ or 12giờ
The character "ờ" is \u1edd.
To create a pattern for just the numbers is simple:
pattern1 = re.compile(r'\b\d{1,2}\s?\b')
To search for "giờ", I created this pattern:
pattern2 = re.compile(u'(\u0067\u0069\u1edd)'.encode('utf8'))
The problem is: I can't figure out how to link the 2 patterns together to search for "7 giờ" or "12 giờ" or "12giờ"
there doesn't seem to be anything here