This is sandbox to test JavaScript regular expression. To test JAVA regular expression you can use java-applet
Regular expression (JavaScript)
Copy link to current editor state
Text to test
 
Capture groups
#0