regex to convert j to character

Discussion in 'Perl Misc' started by Mo, Feb 15, 2007.

  1. Mo

    Mo Guest

    Hi,

    Any body knows how the regex convert & # 1 0 6 ; to character "j"?

    Thanks,
    Mo
     
    Mo, Feb 15, 2007
    #1
    1. Advertisements

  2. Mo

    Mumia W. Guest

    On 02/14/2007 11:31 PM, Mo wrote:
    > Hi,
    >
    > Any body knows how the regex convert & # 1 0 6 ; to character "j"?
    >
    > Thanks,
    > Mo
    >


    "s/&#(\d+);/chr($1)/eg" will work, but using HTML::Entities is probably
    better.


    --
    Windows Vista and your freedom in conflict:
    http://www.badvista.org/
     
    Mumia W., Feb 15, 2007
    #2
    1. Advertisements

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. Mo
    Replies:
    5
    Views:
    494
    Knute Johnson
    Feb 16, 2007
  2. Replies:
    1
    Views:
    3,461
    Dennis Lee Bieber
    Jan 18, 2007
  3. Replies:
    3
    Views:
    650
    James Kanze
    Nov 18, 2007
  4. WANG Cong

    K&R2, page 106 <strcmp>

    WANG Cong, Apr 10, 2008, in forum: C Programming
    Replies:
    2
    Views:
    382
    Bartc
    Apr 10, 2008
  5. Replies:
    3
    Views:
    1,110
    Reedick, Andrew
    Jul 1, 2008
  6. John Gregory
    Replies:
    0
    Views:
    477
    John Gregory
    Jul 5, 2009
  7. Bart Vandewoestyne
    Replies:
    8
    Views:
    1,137
    Bart Vandewoestyne
    Sep 25, 2012
  8. Sebastian
    Replies:
    17
    Views:
    568
    Gene Wirchenko
    Feb 4, 2013
Loading...