[Issue 8203] Use of std.regex.match() generates "not enough preallocated memory" error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 6 08:38:33 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=8203



--- Comment #11 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2014-01-06 08:38:28 PST ---
(In reply to comment #10)
> Created an attachment (id=1310) [details]
> regex example
> 
> This regexp fails with 
> "аллея Театральная, д. 3, стр. 1".
> 

Somewhat reduced test case:
void main(){
    import std.regex;
    auto r = regex(`([а-яА-Я\-_]+\s*)+(?<=[\s\.,\^])`);
    match("аллея Театральная", r);
}

Investigation shows it's related to lookaround.

P.S. I suggest in future to post new bugs as new reports, even if the symptoms
are similar to some older bug. REOPENED is for cases where the same issue
happens again (regression, patch was reverted etc.).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list