in reply to regular expression- match a string
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.if (/^Subject:(\s+)(\S+).*$/
if (/^Subject:(\s+)(.*)$/) { $subject = $2; }
|
|---|