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. Advertising

  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. 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. Mo
    Replies:
    5
    Views:
    356
    Knute Johnson
    Feb 16, 2007
  2. Replies:
    1
    Views:
    1,791
    Dennis Lee Bieber
    Jan 18, 2007
  3. WANG Cong

    K&R2, page 106 <strcmp>

    WANG Cong, Apr 10, 2008, in forum: C Programming
    Replies:
    2
    Views:
    283
    Bartc
    Apr 10, 2008
  4. Ruby Quiz

    [QUIZ] Chess960 (#106)

    Ruby Quiz, Dec 15, 2006, in forum: Ruby
    Replies:
    20
    Views:
    264
    James Edward Gray II
    Dec 21, 2006
  5. Ruby Quiz

    [SUMMARY] Chess960 (#106)

    Ruby Quiz, Dec 21, 2006, in forum: Ruby
    Replies:
    6
    Views:
    100
Loading...

Share This Page