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
•  Javascript help
•  C and C++ challenges
•  Re: Creating a file in a different directory...
•  Auto Populating Lists
•  Unable to display ALL selections from Checkboxlist
•  dropdown list for country,state and city
•  split file column wise
•  Need Javascript Multiple sidebar menu with sliding effects
•  Re: how to create forum using asp.net with c# language?


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-2009