Compile Method In Regex Python Example