Regular expression to replace period in name portion of e-mail header?

Payton

New Member
I am attempting to send an e-mail in PHP and the system is rejecting the e-mail because the name portion of the e-mail address contains a period like below: Mr. Joe Nobody <[email protected]>I am looking for an elegant solution to replace all periods that are not part of the e-mail address with either a space or no character at all. My problem is that the field I am replacing may contain more than one name/e-mail address combination like so: Mr. Joe Nobody <[email protected]>, Mrs. Jane Noone <[email protected]>Does anyone know of a way to do this in PHP using either standard string manipulation or a regular expression?
 
Back
Top