in reply to Contents of $2 empty

\b matches the spot between \w\W, \W\w, \A\w or \w\z. The only thing a\b\w{0,5} can possibly match is "a".

the up to five characters are _yest

You mean " yest"? The space doesn't match \w. You probably want "." instead of "\w"