[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [StrongED] Re: StrongED advanced search and replace.
- To: StrongEd@xxxxxxxxxxxxxx
- Subject: Re: [StrongED] Re: StrongED advanced search and replace.
- From: Tony Moore <old_coaster@xxxxxxxxxxx>
- Date: Thu, 22 Dec 2011 17:02:19 GMT
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1324573417; bh=ZSZDiU0lO6XGTZKHYS6eN7ClD0HPMNVH3EDKylA1KKM=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Date:From:To:Subject:Message-ID:References:In-Reply-To:User-Agent:MIME-Version:Content-Type; b=N+2wvqxu+CaZ2X9/TgMp3NJaWoNOrod2g/T2OqpUfuBbHOA1jTmsY8xuCbspfdhgmgahBJl3AZlJZA1cp9K0vW2+NcXkb4TWwC1Ig2Y/wCNaJj03hiiC0ggHFibABWwcS9Pb18+JaeP1ONjN6/qDBmdTtU5TdpZIXc8miRctK8o=
- Envelope-to: StrongEd@xxxxxxxxxxxxxx
- In-reply-to: <3075ab4552.old_coaster@old_coaster.yahoo.co.uk>
- List-id: RISC OS StrongED mailing list
- References: <f3ea914552.pnyoung@pnyoung.ormail.co.uk> <5245a53b9fLists@Torrens.org.uk> <5c2baa4552.old_coaster@old_coaster.yahoo.co.uk>
- Reply-to: StrongED@xxxxxxxxxxxxxx
- User-agent: Messenger-Pro/6.03 (MsgServe/6.00) (RISC-OS/6.20)
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