On page http://www.javascriptkit.com/script/script2/removehtml.shtml there is a script - "Strip HTML Tags (form) script". I also want to remove "http://". What should I change in this script to remove both HTML Tags and "http://".
I've not tested but this function should work: function stripHTML2() { var re1= /<\S[^><]*>/g; var re2= /http:\/\//gi; for (i=0; i<arguments.length; i++) { var aux = arguments[i].value.replace(re1, ""); arguments[i].value = aux.replace(re2, "") } } Code (markup): Note: Using "gi" on regular expression 2 to transform "http://" on lowercase, uppercase and mixcase.