Re: [code] Regular expression idiosyncrasy

From: Danny MacMillan <foicica.att.nekulturny.org>
Date: Wed, 25 Oct 2017 18:34:50 -0600

On 2017-10-25 18:32, Danny MacMillan wrote:
> On 2017-10-25 15:45, Danny MacMillan wrote:
>>
>> Is there a way to get this to work the way I want? in case it's not
>> clear, the newlines preceding the ellipses are unwanted.
>
> I'm reading the TRE documentation and I found some options I'm trying
> out. This regular expression kills textadept (consumes 30% of my CPU,
> goes to not responding, never comes back). Maybe it's not the best
> regular expression in the world but it shouldn't make textadept die.
> Maybe a timeout is in order?
>
> (?-n)(\n|$)(.*)(\n|$)

I just restarted textadept and tried this again and it didn't cause any
problems. Weird.

-- 
Dan
-- 
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 Wed 25 Oct 2017 - 20:34:50 EDT

This archive was generated by hypermail 2.2.0 : Thu 26 Oct 2017 - 06:45:45 EDT