On Friday 21 August 2009 00:52:57 Johnny Rosenberg wrote:
> 2009/8/20 Jonathan Kaye <[email protected]>:
<<<SNIPPED by Pradeep>>>
>
> 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…
<<<SNIPPED>>>>
Hi Jonathan,
Thanks for the offer - I will, in return, treat you to some great
Indian snacks if you brought the bottle to India !!!!
I write this in response to Johnny Rosenberg - Johnny, you can use
something like what I have given below:
Search for : ([:space:]){2,}
Replace with : $1
/* i.e., you do not need to use the " " syntax here */
The $1 in the replace says "the pattern matched by what is inside the
first pair of parenthesis : i.e., what is within the '(' and ')',
namely the "[:space:]" portion."
This RE can be combined with \"n", where the n is an integer, in the
search field to do some pretty twisted things... :-) As Harold said
in his original post, the time taken to go through the help file for
RE is worth the while!
Cheers,
Pradeep
--
on 21 Aug 2009, Friday, IST (which is GMT +05:30)
-----------------------------------------------------------------------
Worry is like a rocking chair - it gives you something to do, but it
doesn't get you anywhere.
-----------------------------------------------------------------------
Signature block is /auto/ /generated/ from the Unix utility *fortune*
fortune run at 06:10 IST on 21 Aug 2009, Friday
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]