in reply to regular expression- match a string
You're successfully capturing a space into $1, and "forward" into $2.
The RE you probably seek is:
That way you capture beginning with the first non-space character after "Subject: ", and continue your match, including whitespace between words, through the end of the line. $1 will contain your subject./^Subject:\s+(\S.*)$/
Dave
|
|---|