The CFML RegEx function (REFind(), REReplace(), etc.) should not be used with text more than about 20K in size. If you need to manipulate extremely large blocks of data you should break the text into smaller pieces, apply the regular expressions to them, and then concatenate the results when done. (Of course, if you are using CF5 you could always write your own UDF that did this all for you, calling the appropriate RE functions internally). (Applies to: ColdFusion 3.x, 4.x, 5.x)

Leave a Reply