> 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/
> 

You could easily do it with two statements.  I don't think CF allows for
retrieving matches to regular expressions like perl.  Assuming the text
above in in a variable called text, I would just do:

<cfset text=REReplace(text,"^.*URL=","")>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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