Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2007, 02:38 AM
Authorized User
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default reg ex help

I want a regular expression such that it will not allow " and ' in a text.

 
Old January 8th, 2007, 08:24 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
REG EXPRESSION pallone Javascript How-To 4 August 28th, 2008 09:37 AM
Reg:ShowModalDialogBox arivarasuk C# 1 August 12th, 2008 06:38 AM
reg ex help swarnap Javascript How-To 1 January 9th, 2007 02:14 AM
Reg Sum() function suri_1811 XSLT 2 December 7th, 2006 03:17 PM
reg exp for password swarnap Javascript How-To 2 October 25th, 2006 02:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.