RE: regex help for grabbing values of html tag attributes

2005-03-23 Thread Pascal Peters
1]; } return aReturn; } http://www.google.com/"; throwonerror="yes"> #HTMLCodeFormat(cfhttp.filecontent)# Pascal > -Original Message----- > From: Burns, John D [mailto:[EMAIL PROTECTED] > Sent: 22 March 2005 22:59 > To: CF-Talk > Subject: RE: reg

RE: regex help for grabbing values of html tag attributes

2005-03-23 Thread Pascal Peters
1]; } return aReturn; } http://www.google.com/"; throwonerror="yes"> #HTMLCodeFormat(cfhttp.filecontent)# Pascal > -Original Message----- > From: Burns, John D [mailto:[EMAIL PROTECTED] > Sent: 22 March 2005 22:59 > To: CF-Talk > Subject: RE: reg

Re: regex help for grabbing values of html tag attributes

2005-03-22 Thread Claude Schneegans
What you're trying to do is far from being trivial, however, I'm pretty sure that CF_REextract should help you a lot. See the link below. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to

Re: regex help for grabbing values of html tag attributes

2005-03-22 Thread Ben Doom
Try refindnocase('',cfhttp.fileContent,1,'true') I think the 0 and the non-quoted true are confusing it. Just a guess, though. Also, have you verified the contents of cfhttp.filecontent? --Ben Burns, John D wrote: > Ben, > > I can see what you've got (I think) and it makes sense, but for som

RE: regex help for grabbing values of html tag attributes

2005-03-22 Thread Burns, John D
sing mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 4:54 PM To: CF-Talk Subject: Re: regex help for grabbing values of html tag attributes Well, I see a couple of problems with what you're using. First, you've not got a closing " on the attribute. Second, you've wrapped a r

Re: regex help for grabbing values of html tag attributes

2005-03-22 Thread Ben Doom
Well, I see a couple of problems with what you're using. First, you've not got a closing " on the attribute. Second, you've wrapped a regex that contains a " in ""'s, which will error out if you don't escape the inner "'s. You can wrap it with single quotes to fix that. Also, the last * bog

RE: regex help for grabbing values of html tag attributes

2005-03-22 Thread Burns, John D
ified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 4:14 PM To: CF-Talk Subject: Re: regex help for grabbing values of html tag attributes What version of CF? --Ben Bur

Re: regex help for grabbing values of html tag attributes

2005-03-22 Thread Ben Doom
What version of CF? --Ben Burns, John D wrote: > Does anyone have a regex already written (or would any of you regex > gurus like you put something up) that could take the source code of an > HTML file and grab the value of an attribute given the tag and the > attribute that would be grabbed. Fo

regex help for grabbing values of html tag attributes

2005-03-22 Thread Burns, John D
Does anyone have a regex already written (or would any of you regex gurus like you put something up) that could take the source code of an HTML file and grab the value of an attribute given the tag and the attribute that would be grabbed. For instance, if I wanted to get the value of any classes u