Remove braces on if statement, add space like: if (stuff) other stuff;
Maybe use Pattern.compile(regex) and store in static variable for efficiency.