in reply to regular expression- match a string

You get only "forward", because you ask regexp to filter it for you ;)
if (/^Subject:(\s+)(\S+).*$/
This means, show me the whitespaces between "Subject:" and the next non-whitespace as $1. Then, show me every non-whitespace character to the next whitespace, as $2.

This will solve it:
if (/^Subject:(\s+)(.*)$/) { $subject = $2; }
--
b10m

Update: Spelling ... Me no speaky Engrish ...