Regex
Learn Java regular expressions with a live tester.
Match patterns, inspect highlighted results, and understand the building blocks without opening another site.
Advertisement
Interactive regex tester
Enter a Java regex pattern, test it against a sample string, and inspect every match.
Highlighted result
Java is a programming language. JavaScript is not Java.
Matches found
Match 1 at index 0: Java
Match 2 at index 50: Java
Pattern explanation
\bJava\b- `\b` matches a word boundary.