note
kcott
<p>G'day [id://1183732|Arik123],</p>
<p>
Two pieces of information, from [http://perldoc.perl.org/perlrebackslash.html|perlrebackslash], to note.
</p>
<p>
From the "[http://perldoc.perl.org/perlrebackslash.html#Character-classes|Character classes]" section:
</p>
<blockquote>
<em>"<c>\w</c> s a character class that matches any single word character (letters, digits, Unicode marks, and connector punctuation (like the <strong>underscore</strong>))."</em>
<small><em>[my emphasis]</em></small>
</blockquote>
<p>
From the "[http://perldoc.perl.org/perlrebackslash.html#Assertions|Assertions]" section:
</p>
<blockquote>
<em>"<c>\b</c> ... matches at any place between a word (<strong>something matched by <c>\w</c></strong>) and a non-word character"</em>
<small><em>[my emphasis again]</em></small>
</blockquote>
<p>
In your [id://1190838|reply with actual data], you're effectively trying to match "<c>XXXXX</c>",
which occurs in your string as "<c>_XXXXX.</c>".
Both '<c>_</c>' and '<c>X</c>' match "<c>\w</c>": "<c>\b</c>" does not match between '<c>_</c>' and '<c>X</c>'.
</p>
<p>
As already demonstrated twice<sup>[[id://1190840|1],[id://1190846|2]]</sup>,
there is no Unicode issue here.
</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-861371">
<p>— Ken</p>
</div></div>
1190836
1190836