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
    marnkews ãt healeyopolis döt com
     
    Mark Healey, Nov 5, 2008
    #1
    1. Advertisements

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.
Similar Threads
  1. Kenneth McDonald
    Replies:
    1
    Views:
    1,158
    Carl Banks
    Dec 27, 2006
  2. Wybo Dekker
    Replies:
    1
    Views:
    704
    Yukihiro Matsumoto
    Nov 15, 2005
  3. Greg Hurrell
    Replies:
    4
    Views:
    390
    James Edward Gray II
    Feb 14, 2007
  4. Mikel Lindsaar
    Replies:
    0
    Views:
    811
    Mikel Lindsaar
    Mar 31, 2008
  5. Joao Silva
    Replies:
    16
    Views:
    759
    7stud --
    Aug 21, 2009
  6. Tyler
    Replies:
    1
    Views:
    1,413
    Robert Klemme
    Jul 29, 2011
  7. vdvorkin
    Replies:
    0
    Views:
    685
    vdvorkin
    Feb 10, 2011
  8. vdvorkin
    Replies:
    3
    Views:
    1,164
    vdvorkin
    Feb 14, 2011
Loading...