Yes, it is just the basic Java regex (though the quotes are not like the Java Strings, these do not support escaping, but for regexes that is better). The (?i) is just for case insensitive matching (you might notice that in the pattern Simon was with lowercase, but in the input it was titlecase and with this option it was matched). You can check the other possible switches on the Javadoc of the Pattern class.