[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [StrongED] Re: StrongED advanced search and replace.



On 22 Dec 2011, Tony Moore <old_coaster@xxxxxxxxxxx> wrote:

> On 22 Dec 2011, "Richard Torrens (lists)" <Lists@xxxxxxxxxxxxxx> wrote:
>
> [snip]
>
> > "["*"]" will find anything enclosed by square brackets, on any single
> > line.
>
> True, but it could be dangerous, if a closing ] is not present, eg for
>
> .... [aaa ........ [bbb] ....
>
> the whole string would be found - and wiped.

Having written that, I realise that it also applies to the search string
which I suggested, in another post. To avoid the problem, the search
would need to be for

   "[" { ~'[' ? | ' ' | '.' }+ "]"

which would find only [bbb] in the line above.

Tony




-- 
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx