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
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.
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
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
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:
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
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
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
8 matches
Mail list logo