I'm still back in the dark ages, using TCC v.20 (under Windows 10 Pro).
I've written a bazillion regular expressions over the years but rarely use them in TCC. I've never been clear about using regexes successfully in TCC. (Per the OPTION command, they're set to Perl.)
It's a simple character class: "a" or "b" or "c". I get the "YES" result if the command-line argument is a single character ("a" or "b" or "c"). If the argument is something...
Read more
I've written a bazillion regular expressions over the years but rarely use them in TCC. I've never been clear about using regexes successfully in TCC. (Per the OPTION command, they're set to Perl.)
Code:
iff "%1" =~ "[abc]" then
echo YES
endiff
It's a simple character class: "a" or "b" or "c". I get the "YES" result if the command-line argument is a single character ("a" or "b" or "c"). If the argument is something...
Read more