oh, not that this list isnt a great resource, but
aol makes it really nice too!!!!

thanks for all your help everyone!!!!!!!!!

i try to help when i can :)

tw


-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 21, 2002 10:04 PM
To: CF-Talk
Subject: RE: regex question


ok, i know, ive got mpd and smart/dumb tony
are talking back and forth right, no!

my man, the God of CODE, Ryan Peters
has shown me the light, AoL inst mess.
is great for getting quick tips from great
people!!!!

check this out, does this make sense, can it be done
better?

<cfsavecontent variable="xml_123">
<xml><order_detail report_id="545687"></xml>
</cfsavecontent>

<cfset startposition = #findnocase("eport_id=""", #xml_123#)#>

<cfif startposition>
  <cfset startposition = startposition + 10>
</cfif>
  
<cfset endposition = #find("""", xml_123, startposition)#>
<cfset reportid = #mid(xml_123, startposition, endposition -
startposition)#>

<cfoutput>#ReportId#</cfoutput>

this works 100%

thanks for all your help!

tony

-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 21, 2002 9:58 PM
To: CF-Talk
Subject: RE: regex question


cant seem to get this to jive....whats my issue?


<cfset ReportId =#REFind("report_id=""([0-9]+)"", myString, 1, true)#>
<cfset theNumber = Mid(myString, result.pos[2],result.len[2])>


tw


-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 21, 2002 9:51 PM
To: CF-Talk
Subject: RE: regex question


result = REFind("report_id=""([0-9]+)"", myString, 1, true);
theNumber = Mid(myString, result.pos[2],result.len[2]);

I think! ;-)

> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 22 August 2002 1:39 p.m.
> To: CF-Talk
> Subject: regex question
> 
> 
> report_id="545687"
> 
> 
> if i wanted to find that string above (report_id="545687"),
> and extract the digits from inside the
> string, and make them a cf variable called
> reportId....whats the best way?
> 
> im struggling with this one.....
> 
> thanks :)
> 
> ...tony
> 
> tony weeg
> [EMAIL PROTECTED]
> www.revolutionwebdesign.com
> rEvOlUtIoN wEb DeSiGn
> 410.334.6331 
> 
> 



______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to