Pradeep Srinivas wrote:

> On Friday 21 August 2009 00:52:57 Johnny Rosenberg wrote:
>> 2009/8/20 Jonathan Kaye <[email protected]>:
<snipped by Jonathan>
> Thanks for the offer - I will, in return, treat you to some great
> Indian snacks if you brought the bottle to India !!!!
Oh Pradeep. You have found my biggest weakness. I love Indian food and if I
don't get any regularly, my mind stops working :( I am fortunate to have a
girlfriend who is an excellent cook of Indian food so I don't suffer too
much but it's hard to find papadams here. She does make excellent chutneys
(mango/plum, etc.) and wonderful currys. But I've never been to Indian and
that is a big gap in my life. My daughter-in-law is from a Punjabi family
and my grandson is named Ravi. Sadly my financial situation does not permit
such trips but the offer is well received indeed.
> 
> 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."
Here is my second question, Pradeep, since you know regular expressions
quite well. I want to match a string from the start of the record to the
first full-stop (if any) in the record. That part is easy:
^.*\. gives me what I want. Now the hard part: in the replace field, how can
I refer to the material matched by .* ? I would like to surround the
matched material with « at the beginning and » at the end. So, for example,
if a have a record like this: delete.me, I would like to replace it with
this: «delete»me
Is this possible?
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