Johnny Rosenberg wrote:

> 2009/8/20 Jonathan Kaye <[email protected]>:
>> Harold Fuchs wrote:
>>
>> <snip>
>>> In the Find & Replace dialogue click "More options" and then check
>>> Regular Expressions. Now, in the Find box, enter "  *" without the
>>> quotes. That is 2 spaces followed by an asterisk. Enter a single space
>>> into the "Replace with" box and click "Replace all". That should do it.
>>> What you have done is replaced "a single space followed by zero or more
>>> spaces" with "a single space". Read up about Regular Expressions for
>>> details. Your time doing that will be well spent :-)
>>>
>> Hi Harold and Johnny and Pradeep
>> I tried the 2 spaces and a * in the search field and a single space in
>> the replace field. It really works a treat and is blindingly fast.
>> Exactly what I needed. :) Bloody hell, the quality of support in this
>> group is awesome. There's a glass (in fact several) of our local wine
>> waiting for you if you ever find yourself in Northeast Italy.
>> Ciao e grazie,
>> Jonathan
> 
> Unfortunately I don't drink stuff with alcohol, but thanks anyway! :)
> 
> I think that you can also type {:space:} instead of just a space.
> Takes longer time to type, but it's easier to follow if you use it in
> a macro:
> 
> Search for: [:space:]{2,}
> Replace with:
> 
> (Unfortunately you can't use [:space:] in the Replace with-field, so
> you need to enter a space with the space key as usual…
> 
> This doesn't bring much new to the whole thing, I know, I just wanted
> to point the [:space:] thing out and also mention that there are other
> useful things too, like [:digit:], [:upper:], [:lower:], [:alnum:] and
> so on…
> 
> Johnny Rosenberg
No worries. A lot of the locals drink gingerino which is non-alcoholic
usually with a slice of orange. Very refreshing for hot days like today. I
just use Record Macro when I do the search and replace, cut off the
redundant stuff and stick the necessary bits into the existing macro. It
works fine that way although I've go 18 arguments each time for the
search/replace function.
Thanks again.
Jonathan
-- 
Registerd Linux user #445917 at http://counter.li.org/
Please do not send me copies of list mail. I read the lists. Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to