[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[h-e-w] RE: Query-replace-regexp
From: |
Wojciech Komornicki |
Subject: |
[h-e-w] RE: Query-replace-regexp |
Date: |
Tue, 20 May 2003 13:15:47 -0500 |
How about
M-x replace-regexp [RETURN] ^\([^/]*\)/ [RETURN] \1///
--
Wojciech Komornicki Dept of Mathematics
address@hidden Hamline University
http://www.hamline.edu/~wnk/ St Paul, MN 55104
USA
>>>>> "pat" == Patrick Flaherty <address@hidden> writes:
pat:> Hi,
pat:> Have the following string:
pat:> [a1] /an initial particle/prefix to names of people/
pat:> Want to replace just the first / with ///.
pat:> I find that isearch-forward-regexp with
pat:> .*p
pat:> takes me to the first 'p'. So far so good.
pat:> However
pat:> .*/
pat:> takes me to the end of the line (not the first
pat:> forward slash).
pat:> And yet forward slash is not a special character.
pat:> Any ideas? thanx.
pat:> pat