|
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.
|
|
|
|
|
|
|
// |