Just to clarify... YOU'RE PARSING THE URL MANUALLY?!?!?!? CF does this for you. You can access the variable as "URL.pCode" from anywhere in your code, as in:
<CFOUTPUT> The value of the pCode URL variable is #URL.pCode#. </CFOUTPUT> -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -----Original Message----- > From: Cantrell, Adam [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 5:38 PM > To: CF-Talk > Subject: please do my work for me > > > I want to extract a value from a URL variable which can show up > anywhere in > the URL. Here are some examples, I would want the pCode value which will > always be an integer of varying length: > > index.htm?var1=23&pCode=100&othervar=hello -------- return 100 > > index.htm?pCode=1 ------- return 1 > > index.htm?someVariabl=hiThere&someothervariable=45&pCode=00343223234322 > --------- return 00343223234322 > > If somebody can tell me the right regular expression (or if a regular > expression isn't even needed, but just some combination of CF functions) > that would be GREAT! > > Adam. > > ______________________________________________________________________ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists