DMD 0.148 - regular expressions

Walter Bright newshound at digitalmars.com
Sun Feb 26 09:58:21 PST 2006


"Lars Ivar Igesund" <larsivar at igesund.net> wrote in message 
news:dts47r$14c0$1 at digitaldaemon.com...
> I liked the idea (match expressions), just not the operator, and I thought
> that was a common opinion...

if ("regex" ~~ "string")
    _match. ...

The equivalent functionality can now be done with:

if (m; search("string", "regex"))
    m. ...






More information about the Digitalmars-d mailing list