![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re^3: \b in Unicode regexby choroba (Cardinal) |
on May 22, 2017 at 07:41 UTC ( #1190840=note: print w/replies, xml ) | Need Help?? |
\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.)
In Section
Seekers of Perl Wisdom
|
|