I have this preg_match pattern `/admin[^:]*:\s*(.* )/i for this subject(as sample)
txt stuff
Administrative Contact:
Brown, John support@xxxxxxx.com
txt stuff
to pull out “Brown, John support@xxxxxxx.com” but I need something to search and print “Brown, John” (name) only and not the whole line (everything as name but not email).
This is a piece of large text and the only static string is “Administrative Contact:”.
Thanks
http://ideone.com/u0UgL