Fast regular expressions

Lionello Lunesu lionello at lunesu.remove.com
Sun Apr 15 04:20:20 PDT 2007


"Aziz K." <aziz.kerim at gmail.com> wrote in message 
news:op.tqtketww545v36 at vaio...
> Hi Jascha,
>
> Since I found an important feature lacking in Phobos' regex 
> implementation, I want to ask you: does your library support matching over 
> new-lines?

I think phobos' version does support this by using the attribute 'g':
char[] s = "strap a \nbla to bla\n";

auto ss = sub(s, " \nb", "ZZ", "g"); // result: strap aZZla to bla

Or I must have understood what you meant?

L.





More information about the Digitalmars-d mailing list