in reply to Re^2: Metacharacters in regex expression
in thread Metacharacters in regex expression

A simple expedient for deriving a boolean value from index is to use 1+index(...). If the value is not found, you get 0. If it is found at the start of the string, you get 1.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon