Re: [code] [textadept] Regexp searches don't work with longer patterns

From: Mitchell <>
Date: Wed, 12 Feb 2014 14:11:51 -0500 (Eastern Standard Time)


On Tue, 11 Feb 2014, Chris Emerson wrote:

> On Tue, Feb 11, 2014 at 01:26:07PM +0000, Chris Emerson wrote:
>> I haven't worked out where the limitation is, but I find regular expression
>> searches don't work (search_next returns -1) when the pattern is too long.
>> Non-regexp searches (flags=0) seem to continue working.
> I believe this is 2048 byte limit for the NFA inside the Scintilla regex
> engine - and with a case-insensitive search, a single character match takes
> something like 33 bytes (it has a bitmask of allowed characters). I can
> work around my issue by making it a case sensitive search instead.

I won't pretend to understand what the problem is, but I do see the 2048
MAXNFA limit in Scintilla that you mention. Is this worth bringing up on
the Scintilla mailing list?


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 12 Feb 2014 - 14:11:51 EST

This archive was generated by hypermail 2.2.0 : Thu 13 Feb 2014 - 06:49:28 EST