translating MS Word codes using regexps

Discussion in 'Perl Misc' started by neologist, Apr 27, 2007.

  1. neologist

    neologist Guest

    We have a Web form where the input on certain textarea boxes
    is filled in by some of our users by cutting and pasting
    text from MS Word documents. They think it's plain text, but
    it's not. We would like to parse that input before saving it
    to the database, e.g., to translate the funny Word quotes to
    plain double and single quotes using regexps such as by

    s/$Some_MS_Word_Code/"/g;

    I'm sure there's a table of standard codes and some examples
    of how to make typical substitutions somewhere, possibly
    even a CPAN package to assist with this, but I'm not able to
    find it because I don't know exactly what I'm looking for.

    Can someone point me in the right direction?
     
    neologist, Apr 27, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Greg  --
    Replies:
    4
    Views:
    2,270
  2. Replies:
    4
    Views:
    584
  3. Replies:
    2
    Views:
    2,980
    Malcolm
    Aug 20, 2005
  4. Allen
    Replies:
    1
    Views:
    681
    Mark Rae [MVP]
    Dec 3, 2007
  5. Ken Fine

    FSO: Using regexps?

    Ken Fine, Jan 14, 2004, in forum: ASP General
    Replies:
    4
    Views:
    171
Loading...

Share This Page