[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 09:16:03 PST 2014


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



--- Comment #12 from Илья Ярошенко <ilyayaroshenko at gmail.com> 2014-01-06 09:15:56 PST ---
(In reply to comment #11)
> (In reply to comment #10)
> > Created an attachment (id=1310) [details] [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.).

Ok, Thanks!

-- 
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