Regular Expression String Matching Algorithm Examples Python Code