in reply to Re: Regexp with unicode problem
in thread Regexp with unicode problem

how do I do this? Not with use utf? This is for having utf in the code e.g.
my $string='ΔΙΑΜΕΡΙΣΜ&#91 +3;'; if($field =~/$string/){ ....}

Replies are listed 'Best First'.
Re^3: Regexp with unicode problem
by sierpinski (Chaplain) on Feb 08, 2010 at 14:05 UTC
    Perhaps this (untested)
    use Unicode::String; Unicode::String->stringify_as( 'utf8' ); my $string = "This is latin text."; my $string_utf8 = Unicode::String::latin1( $string ); print $string_utf8;
    Never had to use it myself, but had this snippet from a long time ago.
    /\ Sierpinski