Quantcast
Channel: uppercase
Viewing all articles
Browse latest Browse all 10

Java: How to test if a String contains a case-insensitive regex pattern

$
0
0

Java: How to test if a String contains a case-insensitive regex pattern

Java String FAQ: How can I tell if a Java String contains a given regular expression (regex) pattern?

In a Java program, you want to determine whether a String contains a case-insensitive regular expression (regex). You don't want to manipulate the String or extract the match, you just want to determine whether the pattern exists at least one time in the given String.


Viewing all articles
Browse latest Browse all 10

Trending Articles