Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: \b in Unicode regex

by choroba (Cardinal)
on May 22, 2017 at 07:41 UTC ( [id://1190840]=note: print w/replies, xml ) Need Help??


in reply to Re^2: \b in Unicode regex
in thread \b in Unicode regex

\b works for me, even with Hebrew:
#! /usr/bin/perl
use warnings;
use strict;
use utf8;
my $string = 'שָׁלוֹם';
print $string =~ /\bש/, "\n";

(I had to use <pre> instead of <code> to make UTF-8 work.)

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1190840]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-06-20 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.