The code is using a regular expression. Go to the Pattern class in the Java API or google "regex tutorial" for more information.