This removes static usage from the NFA macro. There are at least two reasons for this: static Regex is too buggy, and using the macro version for the common function calls match, find, etc is not a good idea. It seems a lot better to provide explicit macros like macro `~=`(txt, exp: string) that can be used as if "foo" ~= r"\w+": discard.
This removes
static
usage from the NFA macro. There are at least two reasons for this:static Regex
is too buggy, and using the macro version for the common function callsmatch
,find
, etc is not a good idea. It seems a lot better to provide explicit macros likemacro `~=`(txt, exp: string)
that can be used asif "foo" ~= r"\w+": discard
.The initial commit contains hacks, but works.