Using java.util.regex.Pattern.compile() you can specify a pattern as parameter. But how can you specify flags like case-insensitive and ignore whitespaces as well?
Using java.util.regex.Pattern.compile() you can specify a pattern as parameter. But how can you specify
Share
Parameters:
regex, the expression to be compiled flags Matchflags, a bit maskYou can set
flagsto a bitmask composed byCASE_INSENSITIVEMULTILINEDOTALLUNICODE_CASECANON_EQUNIX_LINESLITERALCOMMENTS