fixed regex and added example to TOH.java