How do I find a unicode character in a regexp

Discussion in 'Perl' started by Mark Healey, Nov 5, 2008.

  1. Mark Healey

    Mark Healey Guest

    From what I've read:

    s/\x{2014}/--/g;

    should find an mdash and replace it with "--", but it's not. Why?
     
    Mark Healey, Nov 5, 2008
    #1
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.