<?php
$string = "From: user1@somewhere.com This is just a test.. the original message was sent From: user2@abc.com";
$regExp = "/^From:\s*(\S+)/";
if ( preg_match($regExp, $string, $outputArray) ) { }
PD9waHAKJHN0cmluZyA9ICJGcm9tOiB1c2VyMUBzb21ld2hlcmUuY29tIFRoaXMgaXMganVzdCBhIHRlc3QuLiB0aGUgb3JpZ2luYWwgbWVzc2FnZSB3YXMgc2VudCBGcm9tOiB1c2VyMkBhYmMuY29tIjsKCiRyZWdFeHAgPSAiL15Gcm9tOlxzKihcUyspLyI7CiRvdXRwdXRBcnJheSA9IGFycmF5KCk7CmlmICggcHJlZ19tYXRjaCgkcmVnRXhwLCAkc3RyaW5nLCAkb3V0cHV0QXJyYXkpICkgewpwcmludF9yKCRvdXRwdXRBcnJheVsxXSk7Cn0=