You should validate pattern during configuration editing and submission.
Otherwise, you may get runtime [PatternSyntaxException][1] here.

[1]: http://docs.oracle.com/javase/6/docs/api/java/util/regex/PatternSyntaxException.html