Perhaps your hitting this:

>From the CFDOCS:
In CFML regular expression functions, large input strings (greater than
approximately 20,000 characters) cause a debug assertion failure and a
regular expression error occurs. To avoid this, break your input into
smaller chunks, as the following example shows. Here the variable input
has a size greater than 50000. 

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: James Sleeman [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 01, 2002 12:30 AM
> To: CF-Talk
> Subject: ReReplace(NoCase) maximum length
> 
> 
> Hi All,
>       anybody know if there is a maximum length on the string 
> passed to 
> ReReplace(NoCase) ?  Reason I ask is that I am running the following 
> 
> ReReplaceNoCase(trim(text), "^<HTML>(.*)</HTML>$", "\1");
> 
> and when the string in text is above a certain length (don't know how 
> long exactly) the code fails with an Invalid regular 
> expression message.
>   I cut the offending text in half (it's comign from a database field 
>   (the data in the field is fine, all there, all returned in query)) 
>   and each half goes through just fine, but put em togethor and I get 
>   the error.  Hopefully the "designers" won't mind me splitting thier 
>   page into two (stupidly long anyway) :-) 
> 
> ---
> James Sleeman
> 
> 
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to