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;
In reply to Re: Prog. Perl 3rd Ed. Regex Question
by leriksen
in thread Prog. Perl 3rd Ed. Regex Question
by makar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |