By default a regex matches anywhere in the string, so /b/ would still match "abc", because "b" is in the string.
To make an exact match you have to use the ^ and $ symbols:
/^b$/ will only match "b", nothing more nothing less.
So to apply that to your expression you'd use: