in reply to Re: Word boundary '\B' - Question
in thread Word boundary '\B' - Question

Sidhekin, thanks for the clarification.

I was deceived by the follwing line from the Perl in 21 days book.

/\Bdef\B/ matches cdefg or abcdefghi, but not def, defghi, or abcdef.

But now when i re-read the documentation i get clear answer.

From Documentation:

A word boundary (\b ) is a spot between two characters that has a \w on one side of it and a \W on the other side of it (in either order)

Prasad