Java Regular Expressions are case-sensitive by default .
Read moreIs regex case sensitive mysql?
REGEXP is not case sensitive, except when used with binary strings .
Read moreHow do I make my character not case sensitive?
you can use Character. toLowerCase or Character. toUpperCase to make all to lower case or upper case and compare it.
Read moreHow do I make something optional in regex?
Optional Items
Read moreHow do you make a case sensitive in regex?
In Java, by default, the regular expression (regex) matching is case sensitive. To enable the regex case insensitive matching, add (?) prefix or enable the case insensitive flag directly in the Pattern .
Read moreDoes capitalization matter regex?
Using character sets For example, the regular expression “[ A-Za-z] ” specifies to match any single uppercase or lowercase letter . In the character set, a hyphen indicates a range of characters, for example [A-Z] will match any one capital letter.
Read moreIs regex case sensitive?
By default, the comparison of an input string with any literal characters in a regular expression pattern is case sensitive , white space in a regular expression pattern is interpreted as literal white-space characters, and capturing groups in a regular expression are named implicitly as well as explicitly.
Read more