Regular Expression - UTF8

Discussion in 'Perl Misc' started by howa, Jan 9, 2009.

  1. howa

    howa Guest

    Hello,

    Why my codes below on UTF8 matching not working?

    # ==============================================
    $s = '(';

    while ( $s =~ /\x{FF08}/g ) {

    print "Match\n";

    };

    # ==============================================

    Any idea?

    Thanks.
     
    howa, Jan 9, 2009
    #1
    1. Advertising

  2. howa wrote:

    > Why my codes below on UTF8 matching not working?
    >
    > # ==============================================
    > $s = '$B!J(B';
    >
    > while ( $s =~ /\x{FF08}/g ) {
    >
    > print "Match\n";
    >
    > };


    http://perldoc.perl.org/utf8.html

    --
    Bart
     
    Bart Van der Donck, Jan 9, 2009
    #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. VSK
    Replies:
    2
    Views:
    2,336
  2. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    863
    Alan Moore
    Dec 2, 2005
  3. GIMME
    Replies:
    3
    Views:
    11,999
    vforvikash
    Dec 29, 2008
  4. gry
    Replies:
    2
    Views:
    769
    Alf P. Steinbach
    Mar 13, 2012
  5. Noman Shapiro
    Replies:
    0
    Views:
    240
    Noman Shapiro
    Jul 17, 2013
Loading...

Share This Page