Pascal Peters wrote: > Actually, the carret acts as a negative for a single charactar, not an > entire string: > > [^pascal] matches a single character that is not p, a, s, c, a, or l. > There is no easy way of finding everything but a string (longer than 1 > character).
Maybe not easy, and quite limited, but I have on occasion used REReplace for it. If there is only one occurence of the substring (such as a title) you can use the expression below. text = REReplaceNoCase(cfhttp.filecontent, "(^.*)<title[^>]*>.*</title[^>]*>(.*$)", "/1/2") Jochem ______________________________________________________________________ Get Your Own Dedicated Windows 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=coldfusionb 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

