Guest User

Untitled

a guest
Aug 11th, 2018
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. what Regex works for this?
  2. ---------- Forwarded message ---------- From: person name Date: 2011/12/1 Subject: RE: this is a test subject To: Nadal@gmail.com
  3.  
  4. testingggggg
  5.  
  6. This e-mail (and attachment(s)) is confidential, proprietary,
  7.  
  8. preg_match('/nadal@gmail.com(.*?)This e-mail (and attachment(s)) is confidential,/', $wholeBody, $matches); echo $matches[1];
  9.  
  10. (?<=Nadal@gmail.com)s*(.*?)s*(?=This e-mail (and attachment(s)) is confidential, proprietary,)
  11.  
  12. preg_match('/(?<=Nadal@gmail.com)s*(.*?)s*(?=This e-mail (and attachment(s)) is confidential, proprietary,)/s', $message, $matches);
Add Comment
Please, Sign In to add comment