item as another list with a delimeter of "=",
--------------------
<cfset input="
[Object]
ID=2031
URL=""> OtherSrvLev=0w33a
Category=31
">
<cfset input = replace(input,"[Object]","","ALL")>
<cfloop list="#input#" delimiters="#chr(10)##chr(13)#" index="i">
<cfscript>
setvariable( listgetat(i,1,"=") , listgetat(i,2,"=") );
</cfscript>
</cfloop>
<cfif isdefined("url")>
<cfoutput>
<a href=""> </cfoutput>
</cfif>
----------------------
In this case, you now have the variables ID,URL,OtherSrvLev & Category which
can all be used.
HTH
Craig.
-----Original Message-----
From: Michael Lugassy [mailto:[EMAIL PROTECTED]
Sent: 19 October 2001 02:50
To: CF-Talk
Subject: Regular _expression_
This is not neccesarly have to be done with coldfusion's REReplace but
anyhow,
I'm trying to come up with a regular _expression_ that will help me turn
this:
[Object]
ID=2031
URL=""> OtherSrvLev=0w33a
Category=31
Into: http://www.cnn.com/
Overall, I'm trying to find a way to remove EVERYTHING
(numeric/alpha/special/+New lines)
from "[Object]" over to "URL="" keep everything from URL= "" the New
line and again, remove
everything from OtherSrvLev to the end.
So I will be left with a URL alone.
Anyone?
Michael.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
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
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

