Hi again,

Thanks for answers.

I will just try to figure out in XML generation level on CF.

As a CF evangelist, it is hard to me using a solution except CF. May me I must 
be more professional. :)


Oguz Demirkapi




-----Original Message-----
From: Munson, Jacob [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 23. März 2006 18:58
To: CF-Talk
Subject: RE: Regex on a big data

So the regex works on smaller files?

If so, you may want to use Perl to do this instead.  CF is pretty bad at bulk 
text processing.  I've got some Perl scripts that you could use to do what you 
need, with slight modifications.  Email me off-list if you want to try this 
with Perl. 

> -----Original Message-----
> From: Oðuz_Demirkapý
> Sent: Thursday, March 23, 2006 9:38 AM
> 
> I am just trying to remove blank lines from my generated XML content.
> 
> I have a regex as following.
> 
> <cfset XMLWrite = ToString(XMLdump)>
> <cfset XMLWrite = ReReplaceNoCase(XMLWrite, 
> "[\s]+[#Chr(13)##Chr(10)#]+",
> "#Chr(10)#", "ALL")>
> <cffile action="write"
> file="#getDirectoryFromPath(getTemplatePath())##filename#.xml"
> output="#XMLWrite#">
> 
> But when I have a content which would be more than 5 MB as 
> XML, I get error
> as "500 null" on my CFMX 7.x server.
://www.houseoffusion.com/tiny.cfm/54


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236070
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to