Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: RE: Field validation using Javascript

$
0
0
Hey Lucas, Glad to hear things are coming together :-) The dot is a special character in regular expressions, so to match it exactly (instead of applying it's special meaning) you add a backslash in front of it. For example, this first line doesn't match the dot, but the second one does: var pattern = /[^a-z0-9&\'"#\-\/<>]/ig; var pattern = /[^a-z0-9&\'"#\-\/<>\.]/ig;

Viewing all articles
Browse latest Browse all 154803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>