Removed all unused import statements.
Added a JUnit test with a more realistic regex.