implemented the new regexp syntax
implemented the new regexp syntax