phpbar.de logo

Mailinglisten-Archive

[php] regular expressions

[php] regular expressions

Cyrill Schumacher webmasterbhs_(at)_bluewin.de
Fri, 13 Oct 2000 19:19:43 +0200


> if(!empty($email) and
> !preg_match("(?ix)^[a-z0-9_-]{2,}(\.{1}[a-z0-9_-]{2,})" .
>    "*_(at)_([a-z0-9_-]{2,}\.)+[a-z]{2,}$", $email))

probier das und es funzt und wirf man einen blick ins manual 

if(!empty($email) and
 !preg_match("/(?ix)^[a-z0-9_-]{2,}(\.{1}[a-z0-9_-]{2,})" .
   "*_(at)_([a-z0-9_-]{2,}\.)+[a-z]{2,}$/", $email))


kiri




php::bar PHP Wiki   -   Listenarchive