implement tw /q /h /rv qith the new regex method