add support for java.util.regex.Pattern