snipt

Ctrl+h for KB shortcuts

Text only

Regular expression cookbook

1
2
3
4
5
# Không ch?p nh?n kí t? ??u tiên là @
'/^[^@]/'

# Không ch?p nh?t các kí t? @?!a
'/^[^@?!a]+$/'
https://snipt.net/embed/be89318712ec41def6641ec670796fbb/
https://snipt.net/raw/be89318712ec41def6641ec670796fbb/
be89318712ec41def6641ec670796fbb
text
Text only
5
2016-09-22T10:53:55
True
False
False
/api/public/snipt/28466/
regular-expression-cookbook
<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> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a># Không ch?p nh?n kí t? ??u tiên là @ </span><span id="L-2"><a name="L-2"></a>&#39;/^[^@]/&#39; </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a># Không ch?p nh?t các kí t? @?!a </span><span id="L-5"><a name="L-5"></a>&#39;/^[^@?!a]+$/&#39; </span></pre></div> </td></tr></table>
"regular expression", reg

JavaScript

israel phone number regex

1
2
3
4
5
//cellular israeli regex
/^05\d([-]{0,1})\d{7}$/

//all numbers israel
/^0\d([\d]{0,1})([-]{0,1})\d{7}$/
https://snipt.net/embed/3de7626f89448ca0a807f37b123a5bf1/
https://snipt.net/raw/3de7626f89448ca0a807f37b123a5bf1/
3de7626f89448ca0a807f37b123a5bf1
js
JavaScript
7
2016-09-25T11:36:38
True
False
False
/api/public/snipt/27506/
israel-phone-number-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> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c1">//cellular israeli regex</span> </span><span id="L-2"><a name="L-2"></a><span class="sr">/^05\d([-]{0,1})\d{7}$/</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="c1">//all numbers israel</span> </span><span id="L-5"><a name="L-5"></a><span class="sr">/^0\d([\d]{0,1})([-]{0,1})\d{7}$/</span> </span></pre></div> </td></tr></table>
"regular expression", javascript, js, regex
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.