><cfset z=REfindnocase("(\[)([[:print:][:space:]])*(\])",str,startpos)>

Brook, 

I don't know anything about the null null errors, but here's a quick suggestion - at 
first glance it looks like it's not necessary to wrap your \[ and \] in parentheses. I 
don't see why you would need to return those two parts as subexpressions... this might 
improve performance and memory usage on the larger strings. Also perhaps you don't 
need the central part wrapped in parentheses either - I say this because you aren't 
including the 4th REFindNoCase argument, returnsubexpressions. So I don't believe it 
will do you any good to have those segments wrapped in parentheses.

One more thing, you should be able to use REFind rather than REFindNoCase - again, 
another possible source of performance and memory usage improvement.

I have no clue if making a more efficient regex will help alleviate your null null 
problems...HTH

Mike Mertsock
Alfred University Web Team
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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

Reply via email to