help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble with regexp


From: exits funnel
Subject: Trouble with regexp
Date: Tue, 25 Oct 2005 09:24:40 -0700 (PDT)

Hello,

I have a text file with hundres of lines of the form:

%token FOO_Alter

where 'FOO' is always 'FOO' but 'Alter' is variable. 
I'd like to convert these lines to:

  t_foo_Alter = 'Alter';

using query-replace-regexp but I can't quite get it
right.  Here's what I have so far:

M-x query-replace-regexp RET
%token XTAG_\(a-Z\) RET
  t_xtag_\1 = '\1'; RET

Sadly, I get 0 occurences replaced.  Can anyone set me
straight?  Thanks in advance.

-exits

  


                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]