skx opened this issue 5 years ago · 1 comments
This should work:
if ( "Steve" ~= /steve/i ) { ..
We should also see:
print( type( /foo/ ) ) ; -> "regexp"
(So it is a distinct type, not a string.)
Most of the difficulty here is in the parser; the actual job is easy enough.