in reply to
regex word return
Basically, the ( ) captures the results that is why you get the b and boys as your answers. And the one where the answer is 1 simply says that it was able to match the regex properly. You might want to take a look at
Regex
for a better explanation.
Comment on
Re: regex word return
In Section
Seekers of Perl Wisdom