<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 9:24 AM, Gabor Szabo <span dir="ltr"><<a href="mailto:szabgab@gmail.com" target="_blank">szabgab@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Apr 25, <a href="tel:2013" value="+9722013">2013</a> at 6:05 PM, ik <<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>> wrote:<br>
> try this<br>
><br>
> #!/usr/bin/env perl -w<br>
> #<br>
><br>
> use v5.14;<br>
> use utf8;<br>
><br>
> my $text = 'שלוabv';<br>
><br>
> if ($text =~ /^[\x{5D0}-\x{5ea}]{3}/) {<br>
> say "yes";<br>
> } else {<br>
> say "no";<br>
> }<br>
<br>
</div>I'd probably use \p{IsHebrew} or \p{InHebrew} instead of the hexa code.<br></blockquote><div><br></div><div>For some strange reason it did not worked for me, so I resorted into hex code :(<br></div><div><br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Check here: <a href="http://perldoc.perl.org/perluniprops.html" target="_blank">http://perldoc.perl.org/perluniprops.html</a> to learn way more than<br>
you'd probably want to :)<br>
<br>
I also CC-ed Meir Guttman who is *the* Perl Unicode expert.<br>
He might have something more correct to suggest.<br>
<span class="HOEnZb"><font color="#888888"><br>
Gabor<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</div></div></blockquote></div><br></div></div>