Simple RegEx checker for Java