Let's see if the string "-a" looks like an option, that is, whether it begins with a hyphen:
How odd. Maybe it must match the full string, even though that would make @regexindex[] meaningless:
Even weirder. Let me try that in in a Python script … works. Perl … works. gawk … works. Hmm. Let's try TCC again, but instead of the Ruby flavour we'll try TCC's perl, grep, gnu, and Python flavours … Nope. OK, back to...
Read more
Code:
echo %@regex["^-","-a"]
0
Code:
echo %@regex["^-.*$","-a"]
0
Read more