// use flags to modify the Pattern
Pattern pattern = Pattern.compile( regexString, Pattern.DOTALL | Pattern.CASE_INSENSITIVE );