swarnaprava
01-08-2007, 06:38 AM
I want a regular expression such that it will not allow " and ' in a text.
|
||||
reg ex helpswarnaprava 01-08-2007, 06:38 AM I want a regular expression such that it will not allow " and ' in a text. Philip M 01-08-2007, 07:33 AM <script type="text/javascript"> function noquotes() { re = /[\'\"]/ ; if (re.test(document.f1.t1.value)) { document.f1.t1.value = document.f1.t1.value.replace(/[\'\"]/g,""); } } </script> <form name="f1"> <input type="text" name="t1" onkeyup="noquotes()"> </form> |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum