PatternSyntaxException handling