I might be missing something here, but I seem to be able to generate a null
error when performing a regex operation on a sting longer than 12980
chars. Is this a known limitation?
Maybe some one could try this could on there CFMX dev box and tell me if
they get the same error. Here is some sample code which will generate a
string of 12980 characters long and then try a regular expression operation
on the string. This generates an error on my CFMX (updater installed)
server which is running Win2k / sp3 with IIS5.0.
<!--- changing the loop to value to anything over 12980 throws an error
(try it at 12980 and 12981)--->
<cfset str="">
<cfloop from="1" to="12981" index="i">
<cfset str=str&i>
</cfloop>
<BR>
<cfoutput>Ths string is #len(str)# chars long</cfoutput>
<!--- this is the expression which causes the error --->
<cfset z=REfindnocase("(\[)([[:print:][:space:]])*(\])",str,1)>
Brook Davies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm