Reworked to support legacy versions of “find”, which don’t include support for the -regextype operator.