Regular expression testing with Apache Regexp