in reply to Prog. Perl 3rd Ed. Regex Question

Maybe it would help if I told you that regexes can match two quite different things

The things between characters have zero width, characters have width (generally 1, can't think of a wider example, even in Unicode)

So \b is the zero-width bit between a word character, and 'something' that is 'not-word', like a space, or a '-' or a '%' etc.

+++++++++++++++++
#!/usr/bin/perl
use warnings;use strict;use brain;