snipt

Ctrl+h for KB shortcuts

PHP

code igniter e-mail regex

1
2
3
<?php

$email_regex = "/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/";
https://snipt.net/embed/cabba05a4806bd98c99637ee62438711/
/raw/cabba05a4806bd98c99637ee62438711/
cabba05a4806bd98c99637ee62438711
php
PHP
3
2019-07-21T03:14:57
True
False
False
/api/public/snipt/30226/
code-igniter-e-mail-regex
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nv">$email_regex</span> <span class="o">=</span> <span class="s2">&quot;/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/&quot;</span><span class="p">;</span> </span></pre></div> </td></tr></table>
e-mail, regex