Re: [code] [textadept] Search and replace by regex

From: Mitchell <m.att.foicica.com>
Date: Fri, 31 Jan 2020 10:47:36 -0500 (EST)

Hi Lukas,

On Fri, 31 Jan 2020, Procházka Lukáš Ing. wrote:

> Hello,
>
> suppose having buffer with:
>
> ----
> abcd v ghij
> abcd v ghij
> abcd v ghij
> ----
>
> and regex to be found: " ([v]) +(%w)"
>
> TA (10.8) doesn't find anything, although IMHO it should do (should be " v g"
> three times).
>
> What am I doing wrong?

Try \w instead of %w. I mix up regex with Lua patterns all the time :)

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 31 Jan 2020 - 10:47:36 EST

This archive was generated by hypermail 2.2.0 : Sat 01 Feb 2020 - 06:51:50 EST