Subject: reg ex help
Posted By: swarnap Post Date: 1/8/2007 1:38:49 AM
I want a regular expression such that it will not allow " and ' in a text.

Reply By: vinod_yadav1919 Reply Date: 1/8/2007 7:24:22 AM
Hi Swarnap!!
<script>
reg1=/and/
str="re1nd  1ndu"
if(reg1.test(str))
  {
   alert("Match")
   }
else
   {
   alert("Not Match")
  }

</script>
Hope this will help you

Cheers :)

vinod

Go to topic 54439

Return to index page 71
Return to index page 70
Return to index page 69
Return to index page 68
Return to index page 67
Return to index page 66
Return to index page 65
Return to index page 64
Return to index page 63
Return to index page 62