codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Javascript help  johnr1 at 12:11 on Tuesday, May 19, 2009
 

Java Novice!

I have done some experimenting and modified this code as follows to exclude listed characters...

// JavaScript Document

var r={
'special':/[\|@'~#"£$%^&*().<>?{}/+=]/g,
'quotes':/['\''&'\"']/g,
'notnumbers':/[^\d]/g
}

function valid(o,w){
o.value = o.value.replace(r[w],'');
}

Would you be kind enough to show me how to exclude the following strings - http and www as part of the above!

Many thanks for your help with this it is much appreciated.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• Re: store string from text file to vector
• Re: c# .net Exception of type System.StackOverflowException was thrown.
• Re: error: expression must have a constant value
• Re: Script Does Folder Exist – If Not Create It
• $_GET not working
• GET METHOD
• Re: windows service - web service - com
• Re: Storing data from HTML to Excel or TXT
• Re: Help totalReads=1 totalReads++=2 write totalReads 3 not 2


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010