Archived Boards and Threads... > Parham's PHP Tutorials

Can you help me with this regular expression?

(1/1)

x-y-z:
Hi guys, can anyone help me explain this RE used in preg_match function?
It's used for validating email

if(!preg_match("/^[^\\s()<>@,;:\\\"\\/\\[\\]?=]+@\\w[\\w-]*(\\.\\w[\\w-]*)*\\.[a-z]{2,}$/i",$memberEmail)){
      $invalid ="memberEmail is not valid email";

Thanks before!!  :D

Navigation

[0] Message Index

Go to full version