Jonathan Kaye wrote:

<snip>
> 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
> 
I found what I was looking for: $0 gives me the entire string matched. Now
if I can do $0-1 where that equals the entire match minus the last
character, then I would be a truly happy bunny.
I'll keep looking but any ideas would be helpful.
TIA,
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