Home: Perl Programming Help: Regular Expressions:
Please help with this..

New User

Dec 5, 2009, 1:47 PM

Views: 7667
Please help with this..

I have an email forwarded to a script that needs to be written to the database:

Ref # = 307501245
Email = me@domain.com

The script goes something like this:

if(preg_match("/^Reference Number# = (.*)/",$break_msg[$i],$matches))
if(preg_match("/^Email = (.*)/",$break_msg[$i],$matches))

I am able to run the script with a ":" sign (ex: Ref # : 307501245) but not with "=" sign. The returned message is showing Ref # =3D 307501245.

Could some one help with the correct code?


(This post was edited by anandsoft on Dec 5, 2009, 1:52 PM)