Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1683

Regular expressions in TCC

$
0
0
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.)

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

Viewing all articles
Browse latest Browse all 1683

Trending Articles