Hmm. I just tried a couple of non-printable character insertions, and [^[:print]] does not catch them. Mayhaps [\w] is better after all. ;-)
(BTW, I went and looked up \w for a refresher: "Any alphanumeric character, or the underscore (_), similar to [[:word]]" ) On Mon, Jun 4, 2012 at 1:49 PM, Matt Quackenbush <[email protected]>wrote: > I don't recall the exact characters, but \w will include some other > characters. Maybe this will also work for you? > > reReplaceNoCase( myString, '<p>([\s]|\ |[^[:print]])*</p>', '', 'all' > ) > > I think that's more clear as to intent. I prefer to be more explicit, but > it's really just personal preference. :-) > > > > On Mon, Jun 4, 2012 at 1:29 PM, Robert Harrison < > [email protected]> wrote: > >> >> Matt, >> >> I tried your solutions and it works 100%, except when it's my variable >> from the form. It's a tiny MCE field and it seems it must be inserting some >> non-printable character. I changed the statement >> >> From this: #reReplaceNoCase(myString, >> '<p>([\s]|\ )*</p>', '', 'all' )# >> >> To This: #reReplaceNoCase(myString,'<p>([^\w*?])*</p>','','all' )# >> >> This seems to be working. >> >> Can someone that knows regex better that I confirm the "to this" says: >> Strip from <p> to </p> UNLESS it contains a letter or a number? I think >> that's what it says. Is that right? >> >> Thanks >> >> >> Robert Harrison >> Director of Interactive Services >> >> Austin & Williams >> Advertising I Branding I Digital I Direct >> 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 >> T 631.231.6600 X 119 F 631.434.7022 >> http://www.austin-williams.com >> >> Blog: http://www.austin-williams.com/blog >> Twitter: http://www.twitter.com/austin_ >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351452 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

