delete regex match checking