DMD 0.148 - regular expressions
Walter Bright
newshound at digitalmars.com
Sun Feb 26 11:30:34 PST 2006
"Johan Granberg" <lijat.meREM at OVEgmail.com> wrote in message
news:dtsu0h$21ct$1 at digitaldaemon.com...
> Why not do like this instead?
>
> if (m;"regex" ~~ "string")
> m. ...
>
> That would get rid of the implicit declaration of _match and just like
> usual with statements the result of ~~ could bee ignored.
Because it doesn't offer enough utility over the function version to justify
it.
More information about the Digitalmars-d
mailing list