Added regtest. Compile with -D__PLUMED_HAS_CREGEX