Try <(h[0-9])>(([^<]|<[^/]|</[^h]|</h[^0-9])*)</\1>
<hnum> --- Ian Lurie <[EMAIL PROTECTED]> wrote: > Yep, that's the problem. > > This works great if all I have to do is grab the > first element: > > <h[0-9] [^>]*> > > But I actually need what's between the <hnum> and > </hnum> and it DOES > include HTML. > > Sigh... > > -----Original Message----- > From: Matthew Walker > [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 22, 2002 10:26 PM > To: CF-Talk > Subject: RE: Regex help, again > > > I'm guessing that you actually want <h(anynum)>(any > text > here)</h(anynum)> ? > > You could use <h[0-9]>([^<]*)</h[0-9]> but that > would only work where > there are no HTML tags between the h tags. > > > > > > -----Original Message----- > > From: Ian Lurie > [mailto:[EMAIL PROTECTED]] > > Sent: Monday, 23 September 2002 5:15 p.m. > > To: CF-Talk > > Subject: Regex help, again > > > > > > I'm trying to pull all <h(anynum)>(any text > here)</h>. > > > > I've got: <h[0-9]> but can't seem to get the > wildcard to work > > so that I can > > grab the entire element. > > > > Any ideas? > > > > Ian > > > > > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

