The additions are correct. I was a bit hasty in my posting.

  _____  

From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 11:20 AM
To: CF-Talk
Subject: RE: Regular Expressions: Extract code between BODY tags

You, sir, are a saint.  Thank you.

Here's the code I ended up using:

REReplaceNoCase(contents, '.+<body[^>]*>(.+)</body>.+', "\1")

As it was, it removed the BODY tags but not the contents before and after
them.

Again, thanks.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/

Michael Dinowitz wrote:
> rereplacenocase(string, '<body[^>]*>(.+)</body>', \1)
> Your looking for the body tag with anything in it, then everything after
> that body tag that does not include the ending body tag. Using REReplace
is
> the most efficient here as your peeling off what you don't want (i.e.
whats
> not body content)
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to