Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java regex case insensitive

Pattern pattern = Pattern.compile("(?i).*"); // using Pattern
Pattern mypattern = Pattern.compile(MYREGEX, Pattern.CASE_INSENSITIVE); // or
str.matches("(?i).*"); // or directly
 
PREVIOUS NEXT
Tagged: #java #regex #case #insensitive
ADD COMMENT
Topic
Name
9+9 =