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. 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. Kenneth McDonald
    Replies:
    1
    Views:
    843
    Carl Banks
    Dec 27, 2006
  2. Greg Hurrell
    Replies:
    4
    Views:
    164
    James Edward Gray II
    Feb 14, 2007
  3. Mikel Lindsaar
    Replies:
    0
    Views:
    491
    Mikel Lindsaar
    Mar 31, 2008
  4. Joao Silva
    Replies:
    16
    Views:
    364
    7stud --
    Aug 21, 2009
  5. Tyler
    Replies:
    1
    Views:
    953
    Robert Klemme
    Jul 29, 2011
Loading...

Share This Page