Ok, right I've discovered the problem, but can't find a way around it... I
know theres a lot of regex guru's out there, and one of them is bound to
have come across this before, so please help!!

Basically im trying to URLEncodeFormat the part of the string being
ReReplaced... Ie I want to URLEncodeFormat(\0)... It doesn�t matter that im
trying to url encode format it, no function works with the \0 as its
argument.. !!

So basically im discovering the \0 is unusable...

So is there any way I can pass the \0 to the URLEncodeFormat() function? So
that I can urlencode it?

I hope this all makes sense...
Ryan

On 12/7/03 23:12, "Ryan Mitchell" <[EMAIL PROTECTED]> wrote:

> Sorry copied the wrong version:
> 
> Ok so:
> #ReReplace(cfhttp.FileContent,'[[:alnum:]/]+[[:alnum:]]+\.php+[[:alnum:]:;%-_\
> .\?/=]+','index.cfm?section=#url.section#&page=#URLEncodedFormat(\0)#','ALL')#
> 
> Gives me an error saying
> Missing argument name.
> 
> wheras:
> 
> #ReReplace(cfhttp.FileContent,'[[:alnum:]/]+[[:alnum:]]+\.php+[[:alnum:]:;%-_\
> .\?/=]+','index.cfm?section=#url.section#&page=#URLEncodedFormat("\0")#','ALL'
> )#
> 
> Doesn�t output the replaced string, it just outputs "\0" where the replaced
> string should be...
> 
> Any ideas?
> 
> 
> On 12/7/03 21:15, "Jim McAtee" <[EMAIL PROTECTED]> wrote:
> 
>> Show the code that is generating the error.
>> 
>> 
>> ----- Original Message -----
>> From: "Ryan Mitchell" <[EMAIL PROTECTED]>
>> To: "CF-Talk" <[EMAIL PROTECTED]>
>> Sent: Saturday, July 12, 2003 11:38 AM
>> Subject: Php in cf help...
>> 
>> 
>>> Hello
>>> 
>>> Im trying to include a php file within a cold fusion page, and in doing so
>>> replace all links within the page so that they refer back to the cold fusion
>>> page calling the php file... Hope that made sense...
>>> 
>>> So anyways, im doing a cfhttp of the file, and then with the result doing
>>> this...
>>> 
>>> #ReReplace(cfhttp.FileContent,'[[:alnum:]/]+[[:alnum:]]+\.php+[:;%-_\.\?/=]+
>>> ','index.cfm?section=#url.section#&page=\0','ALL')#
>>> 
>>> However, I want to URLEncodedFormat() the \0 bit of the expression, but it
>>> won't let me!! I get an error saying invalid expression format or something
>>> like that...
>>> 
>>> Anyways, I need to encode the url to preserve the variables passed in it for
>>> the php page to process...
>> 
>> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to