Use Pattern.DOTALL to ensure that newlines are handled in options.