Differences

This shows you the differences between two versions of the page.

links:php:regular-expression [2012/02/03 09:53]
Knut Heermann (flip-flop)
links:php:regular-expression [2018/06/03 18:08] (current)
Line 188: Line 188:
\\ \\
-==== E-Mail prüpfen:  ====+==== E-Mail prüfen:  ====
Angelehnt an  [[http://www.infos24.de/phpe/handbuch/6_php_regular_expression.htm|Die Funktion preg_match_all]] [infos24 GmbH] Angelehnt an  [[http://www.infos24.de/phpe/handbuch/6_php_regular_expression.htm|Die Funktion preg_match_all]] [infos24 GmbH]
-<code reg|h E-Mail check |h>+<code reg>
$email    = test@example.com $email    = test@example.com
$email_ok = preg_match("!^\w[\w|\.|\-]+@\w[\w|\.|\-]+\.[a-zA-Z]{2,4}$!",$email); $email_ok = preg_match("!^\w[\w|\.|\-]+@\w[\w|\.|\-]+\.[a-zA-Z]{2,4}$!",$email);
links/php/regular-expression.1328259210.txt.gz · Last modified: 2018/06/03 18:06 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0