From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "colin smith" Newsgroups: gmane.emacs.help Subject: capitalize string using regular expressions Date: Sat, 06 Dec 2003 00:53:19 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3M9Ab.324$vg4.207@nwrdny02.gnilink.net> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1070672487 29767 80.91.224.253 (6 Dec 2003 01:01:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2003 01:01:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 06 02:01:25 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ASQp3-0003YQ-00 for ; Sat, 06 Dec 2003 02:01:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASRl4-0003ZL-Rw for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Dec 2003 21:01:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!newsfeed.news2me.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny02.gnilink.net.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 151.201.146.100 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: nwrdny02.gnilink.net 1070671999 151.201.146.100 (Fri, 05 Dec 2003 19:53:19 EST) Original-NNTP-Posting-Date: Fri, 05 Dec 2003 19:53:19 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:119054 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:14994 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14994 Hi Everyone, Does anyone know how I can replace all occurences of any strings that end with ".txt" (lets say "ghjkl.txt" and "xyz.txt") with their uppercase equivalents(ie. "GHJKL.txt" and "XYZ.txt"). There must be some way of doing this using regular expressions. I've looked extensively through the emacs help, but havent been able to figure it out. Thanks a lot, Colin.