> Isaac,
> First of all, thanks! In my case, we are on MX 6.1 here,
> so the basic approach is working. I need to account for
> target=... and target='...' as well as just target="...".
> So, I tried the following, but it's cutting out more than
> I want it to:
> <cfset text = REReplaceNoCase(text,'target=("|''|)[^"|^''^
> ]*("|''|)',"","ALL")>
You're welcome.
You'll need to regexes to handle that...
<cfset text = REReplaceNoCase(text,'target="[^"]*"',"","ALL")>
<cfset text = REReplaceNoCase(text,"target=[^>[:space:]]","","ALL")>
The second expression will handle any instance of unquoted targets,
and since it's possible for someone to put in target="a value with
spaces" you probably want to make sure they execute in this order. If
you use this frequently, I would put it into a function.
s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217312
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54