Do you have CF Studio or HomeSite+? They both permit the use of re's in the Extended Find and Extend Replace dialogs. The regex syntax should be pretty much identical to CF Server's syntax. Hard to say what TextPad's abilities or quirk's are when working with regular expressions.
>From your original re: [~[A-Z][:space:]$] I'd try changing this to ~[A-Z]{2}[:space:]+ This removes the outer brackets, while the {2} says "exactly two" of the previous character set and the + says "one or more" spaces. Your re would require exactly one letter followed by exactly one space before the end of the string. The $ may or may not work. It usually indicates the end of the string. For a file open in TextPad, there would only be one "end of string". The escape sequence \n might work for end of line. Jim ----- Original Message ----- From: "Larry Juncker" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 01, 2003 12:31 PM Subject: RE: OT: Regex question > I am doing the replacements in TextPad on a text file that I am parsing. > Is there not a regex that would work without running it through CF? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4