Restrictions in std.regexp?
    Olaf Pohlmann 
    op at nospam.org
       
    Tue May  2 06:39:13 PDT 2006
    
    
  
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:
	Error: *+? not allowed in atom
Is there any other way to get this working or am I just out of luck with 
the current implementation?
op
    
    
More information about the Digitalmars-d-learn
mailing list