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

Re: [StrongED] StrongED advanced search and replace.



On 22 Dec 2011, Peter Young <pnyoung@xxxxxxxxxxxx> wrote:
> On 22 Dec 2011  Tony Moore <old_coaster@xxxxxxxxxxx> wrote:
> > On 22 Dec 2011, Peter Young <pnyoung@xxxxxxxxxxxx> wrote:
>
> > > I'm sruggling with StrongEd's advanced search and replace. I have
> > > a fairly large text file in which I want to remove a whole lot of
> > > strings of the form [****], where the **** bit contains alphabetic
> > > characters, upper and lower case, spaces and full stops.
>
> > Try    "[" { ? | ' ' | '.' }+ "]"
>
> Many thanks, Tony, but I think that just proves that the syntax of
> advanced search passeth my understanding :-(

It's not _that_ complicated!

   "[" "]"   bookends the search for
   { }+      one or more characters from
   ?         the predefined set A-Za-z
   |         or
   ' '       the set comprising space
   |         or
   '.'       the set comprising full stop

Tony




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