Re: [code] help needed with textadept-ncurses

From: Mitchell <m.att.foicica.com>
Date: Fri, 17 May 2013 17:43:24 -0400 (Eastern Daylight Time)

Chris,

On Fri, 17 May 2013, Chris Emerson wrote:

> Hi,
>
> On Fri, May 17, 2013 at 12:29:47AM -0400, Mitchell wrote:
>> On Thu, 16 May 2013, Simon wrote:
>>> 6. Will it ever be possible to search by regular expression?
>>
>> There is a hack to do this: http://foicica.com/wiki/regex-searches
>>
>> I don't know if it will ever be supported natively though. Regex
>> libraries are quite big.
>
> Who needs a regex library when you have LPeg? :-)
>
> Seriously, if there were a regex-to-LPeg pattern converter, would it be
> possible to plug that in?

LPeg and Lua patterns are two different things. Right now only Lua
patterns are used in searches. There is no way to do a regex-to-Lua
pattern conversion as you could probably guess, but a regex-to-LPeg
converter could indeed be plugged in. I wouldn't want to support it
though.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 17 May 2013 - 17:43:24 EDT

This archive was generated by hypermail 2.2.0 : Sat 18 May 2013 - 06:31:39 EDT