Actually here are the regular expressions that I was looking for. # html character entity replacements $s =~ s/\342\200\231/’/g; $s =~ s/\342\200\230/‘/g; $s =~ s/\342\200\246/…/g; $s =~ s/\342\200\223/-/g; $s =~ s/\342\200\224/—/g; $s =~ s/\342\200\234/”/g; $s =~ s/\342\200\235/„/g;
# ascii equivalent replacements $s =~ s/\342\200[\230\231]/'/g; $s =~ s/\342\200\246/.../g; $s =~ s/\342\200\223/-/g; $s =~ s/\342\200\224/--/g; $s =~ s/\342\200[\234\235]/"/g; On 3/27/06 3:41 PM, "Merrill, Jason" <[EMAIL PROTECTED]> wrote: > Wow, who knew. :) > > > Jason Merrill | E-Learning Solutions | icfconsulting.com > > > > > > > > > > >>> -----Original Message----- >>> From: [EMAIL PROTECTED] [mailto:flashcoders- >>> [EMAIL PROTECTED] On Behalf Of Wade Arnold >>> Sent: Monday, March 27, 2006 4:43 PM >>> To: Flashcoders mailing list <flashcoders@chattyfig.figleaf.com> >>> Subject: Re: [Flashcoders] Cut and paste to textarea from MS Word >>> >>> Jason, >>> That is exactly what I am looking for. I am going to write an AS 2.0 >>> class to do the same thing. Thanks for the help >>> >>> NaughtyWordsChars detects double-quotes, single-quotes, elipses, em dashes, >>> and en dashes. They can be replaced with either ASCII equivalents or html >>> character entities. The detection can be toggled on an entry's title, entry >>> body, extended entry, keywords, and excerpt. >>> >>> >>> >>> >>> On 3/27/06 3:15 PM, "Merrill, Jason" <[EMAIL PROTECTED]> wrote: >>> >>>> I don't know if this would help you or not, something to look at - looks >>>> like >>>> he uses it for blog entries: >>>> >>>> http://www.muhajabah.com/islamicblog/mt- >>> tips/archives/plugins/clean_up_trouble >>>> some_characters_from_copynpaste.php >>>> >>>> >>>> Jason Merrill | E-Learning Solutions | icfconsulting.com >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>>> -----Original Message----- >>>>>> From: [EMAIL PROTECTED] [mailto:flashcoders- >>>>>> [EMAIL PROTECTED] On Behalf Of Wade Arnold >>>>>> Sent: Monday, March 27, 2006 3:56 PM >>>>>> To: Flashcoders mailing list <flashcoders@chattyfig.figleaf.com> >>>>>> Subject: [Flashcoders] Cut and paste to textarea from MS Word >>>>>> >>>>>> I have been working on allowing users to cut and past from word into a >>>>>> textarea. For html/php based applications I have always used tidy on the >>>>>> server to clean up the clipboard from everything that MS Word puts in >>>>>> it's >>>>>> text. Here is an example. >>>>>> >>>>>> paste: >>>>>> This isn¹t stuff ³this is neat² Œbut wrong¹ >>>>>> >>>>>> Comes out as: >>>>>> >>>>>> This isn?t the write stuff ?this is neat? ?but nothing? >>>>>> >>>>>> >>>>>> Does anyone have a class for cleaning up the input text? >>>>>> >>>>>> Thanks! >>>>>> >>>>>> Wade >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Flashcoders@chattyfig.figleaf.com >>>>>> To change your subscription options or search the archive: >>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>>>> >>>>>> Brought to you by Fig Leaf Software >>>>>> Premier Authorized Adobe Consulting and Training >>>>>> http://www.figleaf.com >>>>>> http://training.figleaf.com >>>> NOTICE: >>>> This message is for the designated recipient only and may contain >>>> privileged >>>> or confidential information. If you have received it in error, please >>>> notify >>>> the sender immediately and delete the original. Any other use of this >>>> e-mail >>>> by you is prohibited. >>>> _______________________________________________ >>>> Flashcoders@chattyfig.figleaf.com >>>> To change your subscription options or search the archive: >>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>> >>>> Brought to you by Fig Leaf Software >>>> Premier Authorized Adobe Consulting and Training >>>> http://www.figleaf.com >>>> http://training.figleaf.com >>> >>> >>> _______________________________________________ >>> Flashcoders@chattyfig.figleaf.com >>> To change your subscription options or search the archive: >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> Brought to you by Fig Leaf Software >>> Premier Authorized Adobe Consulting and Training >>> http://www.figleaf.com >>> http://training.figleaf.com > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com