all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Forrest <drf5n@mug.sys.virginia.edu>
Subject: Re: Regular expression - replace lower case to upper case
Date: Thu, 31 Oct 2002 21:33:10 -0500	[thread overview]
Message-ID: <Pine.LNX.4.33.0210312129010.6470-100000@mug.sys.virginia.edu> (raw)
In-Reply-To: <apslo1$iuj$1@mulga.cs.mu.OZ.AU>

On Fri, 1 Nov 2002, Rod Farmer wrote:

> Hi,
>     I've been looking through the manuals and can't seem to find how to
> replace all occurences of HTML tags in lower case, ie <body> with upper case
> <BODY> as seems to be the W3C standards for 4.01
>
> I was going to use M-x % regexp RET string RET but what I really want is
> something like the s/foo/bar/g where
> bar can actually be a reference back to the string that has been
> matched.....

Well, you will probably need to write a function.  regexps CAN refer back
to parts of the matched string  (using \(html|body\) in the search part,
and \1 in the replace part), but they won't be able to uppercase it.

Dave
-- 
 Dave Forrest    (434)924-3954w(111B) (804)642-0662h (804)695-2026p
 drf5n@virginia.edu             http://mug.sys.virginia.edu/~drf5n/

      parent reply	other threads:[~2002-11-01  2:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-01  4:33 Regular expression - replace lower case to upper case Rod Farmer
2002-11-01  2:32 ` Michael Slass
2002-11-01 19:34   ` Reiner Steib
2002-11-01 21:49     ` Michael Slass
2002-11-01  2:33 ` David Forrest [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.33.0210312129010.6470-100000@mug.sys.virginia.edu \
    --to=drf5n@mug.sys.virginia.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.