On Thu, Aug 07, 2014 at 10:42:13AM -0700, H. S. Teoh via Digitalmars-d-learn 
wrote:
[...]
> Hmm, you're right. I was a bit disappointed to find out that the |
> operator in std.regex (and also in Perl's regex) doesn't do
> longest-match but first-match. :-( I had always thought it did
> longest-match, like in lex/flex.
> 
> I wish we can extend std.regex to allow longest-match for
> alternations... but there may be performance consequences.

https://issues.dlang.org/show_bug.cgi?id=13268


T

-- 
Valentine's Day: an occasion for florists to reach into the wallets of
nominal lovers in dire need of being reminded to profess their
hypothetical love for their long-forgotten.

Reply via email to