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.
|
|---|