Try treating the text a list with a cr/lf delimeter, and then tret each list
item as another list with a delimeter of "=",

--------------------

<cfset input="
[Object]
ID=2031
URL=http://www.cnn.com/
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="#url#">#url#</a>
</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=http://www.cnn.com/
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= to 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

Reply via email to