From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Tennis Smith" Newsgroups: gmane.emacs.help Subject: Regexp Query/Replace Without Trashing Original Text Date: Sat, 31 Jul 2004 03:37:48 -0700 Organization: self Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1091270054.672720@sj-nntpcache-5> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1091270220 15894 80.91.224.253 (31 Jul 2004 10:37:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 31 Jul 2004 10:37:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 31 12:36:50 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BqrEP-0002lf-00 for ; Sat, 31 Jul 2004 12:36:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BqrHh-00013i-H6 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jul 2004 06:40:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4939.300 Cache-Post-Path: sj-nntpcache-5!unknown@sjc-vpn4-497.cisco.com X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 23 Original-Xref: shelby.stanford.edu gnu.emacs.help:124570 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19905 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19905 Hi, How can I convert something like this $GLOBAL_VAR to this: $global_array(GLOBAL_VAR) ?? Its easy to do a regexp query/replace for "\$[A-Z]", but I don't really want to change either the leading dollar sign ("$") or the trailing uppercase text (GLOBAL_VAR). TIA, -Tennis -- Remove "-remove-to-reply" to respond to my email address directly.