This is a updated test harness from the Java Tutorials lesson on Regular Expressions.
Specifically this test harness does not use the Console class. This allows the test harness to work in an Netbeans and Eclipse.
http://docs.oracle.com/javase/tutorial/essential/regex/test_harness.html