Toggle navigation
RegexPlanet
Testing
Go (beta)
Haskell (beta)
Java
JavaScript
.Net
Perl (beta)
PHP (beta)
PostgreSQL (beta)
Python
Ruby (beta)
Rust (beta)
Tcl (beta)
XRegExp (beta)
Previous version
Cookbook
Support
JavaDoc
Regular Expression Test Page
for Java
Share:
Expression to test
Regular expression:
Options:
Force canonical equivalence [CANON_EQ]
Case insensitive [CASE_INSENSITIVE] (i flag)
Allow comments in regex [COMMENTS] (x flag)
Dot matches line terminator [DOTALL] (s flag)
^ and $ match EOL [MULTILINE] (m flag)
Unicode case matching [UNICODE_CASE]
Only consider '\n' as line terminator [UNIX_LINES]
Replacement:
Input 1:
Input 2:
Input 3:
Input 4:
Input 5: