I don't think the number is a hard constant, so be careful.

I usually break my string into roughly 10K chunks (broken on nearest LF)

Jerry Johnson

>>> [EMAIL PROTECTED] 10/10/03 02:35PM >>>
I think I've figured it out and Jerry is pretty much right on...

When the string I'm searching through has 20485, the regex works. When the
string has 20486, I get the "bad regular _expression_" message.

Thanks,
Jon
-----Original Message-----
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 2:27 PM
To: CF-Talk
Subject: Re: Why am I getting "Bad regular _expression_"

My bet would be that your string X is too long.

CF 5 has a known limitation of something like 22,000 bytes. Longer strings
throw this error.

I think.

Any ninjas around to correct me?

Jerry Johnson

>>> [EMAIL PROTECTED] 10/10/03 01:39PM >>>
I'm trying to write an _expression_ that will remove any SHTML include tags. I
am getting a "bad regular _expression_" error from cf5. What is wrong?

Thanks,
Jon

_expression_:

<CFSET VARIABLES.blingBling = reReplaceNoCase(VARIABLES.X,
"<!--.*##include.*-->", "", "ALL")>



[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to