結果 : python generate regex pattern from string