I ran into the same problem trying to write a parser of a markup language. I 
would suggest you to use some mechanism to break this long input to smaller 
chunks to match. Reggie is only good for lexical analysis which only deal with 
smaller chunks, bigger blocks need to be handled using grammatical analysis.

> On Dec 16, 2014, at 01:20, ecir hana <ecir.h...@gmail.com> wrote:
> 
> On Mon, Dec 15, 2014 at 6:09 PM, Stephen J. Butler <stephen.but...@gmail.com
>> wrote:
>> 
>> If you read the ICU docs on regular expressions you'll see that it sets an
>> 8MB limit on head size when evaluating. My guess is that you've run into
>> this and NSRegularExpression misses a return code somewhere.
>> 
> 
> I would have thought 50 000 characters is not that much. But then again, I
> don't really know how ICU works... Reading the ICU docs further, there it
> says:
> 
> Because ICU does not use program recursion to maintain its backtracking
>> state, stack usage during matching operations is minimal, and does not
>> increase with complex patterns or large amounts of backtracking state.
> 
> 
> 
>> But your pattern is really suboptimal for what you're trying to accomplish.
>> 
> 
> It's really a reduced test case.
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/max%40maxchan.info
> 
> This email sent to m...@maxchan.info

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to