in reply to Matching multiple patterns with regex

When do you think your line contains both, From: and Subject:? You will need to correct your logic.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.