Selecting text between text

2008-05-28 Thread Phillip Vector
Just curious... I'm a bit confused on how to do this and figured someone else may have an idea (if not the code). Sorry if this sounds disjointed. I still have yet to get my coffee this morning. I have the following string... This is a a href=http://www.foobar.com;Link/a to foobar. I would like

RE: Selecting text between text

2008-05-28 Thread Dave Watts
Just curious... I'm a bit confused on how to do this and figured someone else may have an idea (if not the code). Sorry if this sounds disjointed. I still have yet to get my coffee this morning. I have the following string... This is a a href=http://www.foobar.com;Link/a to foobar.

Re: Selecting text between text

2008-05-28 Thread Phillip Vector
Cool. Found a bit of code to do basically what I wanted. Thanks. :) On Wed, May 28, 2008 at 9:12 AM, Dave Watts [EMAIL PROTECTED] wrote: Just curious... I'm a bit confused on how to do this and figured someone else may have an idea (if not the code). Sorry if this sounds disjointed. I still

Re: Selecting text between text

2008-05-28 Thread Ryan J. Heldt
Phillip - Well, for the first part of your question, the following regex will remove all the html from a string: cfset blah = reReplaceNoCase(some_html,/?[^]*,,all) / Thanks! Ryan Phillip Vector wrote: Just curious... I'm a bit confused on how to do this and figured someone else may have an

Re: Selecting text between text

2008-05-28 Thread Phillip Vector
Thanks. :) On Wed, May 28, 2008 at 9:27 AM, Ryan J. Heldt [EMAIL PROTECTED] wrote: Phillip - Well, for the first part of your question, the following regex will remove all the html from a string: cfset blah = reReplaceNoCase(some_html,/?[^]*,,all) / Thanks! Ryan Phillip Vector wrote:

Re: Selecting text between text

2008-05-28 Thread Bilal Soylu
When you strip via Regex you will either restrict your input to the start of the anchor tag or deal with the end result one more time. I normally prefer to get the content of the href attribute. You can get the href content using this type of construct: sURL = ListGetAt(FullUrl,2,); where

Re: Selecting text between text

2008-05-28 Thread Kris Jones
This will strip the link tags from around text contained in variable mytext: cfset newtext = rereplacenocase(mytext,(a [^]*)([^]*)(/a),\2,all) / cfoutput#newtext#/cfoutput Using back-references, \2 refers to the text between the a/a tags. I believe that \1 would refer to the a tag and associated

RE: Selecting text between text

2008-05-28 Thread Bobby Hartsfield
Vector [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2008 11:56 AM To: CF-Talk Subject: Selecting text between text Just curious... I'm a bit confused on how to do this and figured someone else may have an idea (if not the code). Sorry if this sounds disjointed. I still have yet to get my