Grammartron (or something similar) for macOS

You can find documentation about regular expressions in the Mac documentation: