Restrictions in std.regexp?

Lionello Lunesu lio at lunesu.remove.com
Tue May 2 06:57:24 PDT 2006


Olaf Pohlmann wrote:
> Hi,
> 
> the documentation of std.regexp is somewhat sparse, so I tried to find 
> out a few things on my own. There seems to be no way to do lookaheads 
> and lookbehinds. This:
> 
>     RegExp re = search("ABCDEF", "(?<=AB)CD(?=EF)");
> 
> should find "CD" as a match, but it yields a runtime error:

Use "AB(CD)EF" and re.match(1) ??
I'm very inexperienced with regexp, mind you :S

L.



More information about the Digitalmars-d-learn mailing list