More generally, you can always use ExecIf with substrings and/or Unix type regular expression matches.