This article provides you with an excellent ASP tutorial to remove space and number regular expressions in a string oh, these four replacement spaces and numbers are different oh.
<script language= "Web Effects" type= "Text/javascript" >
var str;
Str= "Ten 3333 abc123";
var RG;
Rg=/[0-9]{1,}|s/ig;
var newstr=str.replace (RG, "");
document.write (NEWSTR);
</script>
Method Two
<script language= "javascript" type= "Text/javascript" >
var str;
Str= "Ten 3333 abc123";
var RG;
Rg=/[0-9]{1,}|s/ig;
var newstr=str.replace (RG, "");
document.write (NEWSTR);
</script>
Method Three
function Checkexp (PATRN, STRNG)
Dim regex, Match ' establishes the variable.
Set regex = new RegExp ' establishes a regular expression.
Regex.pattern = Patrn ' Set mode.
Regex.ignorecase = True ' Sets whether character case is case-sensitive.
Regex.global = True ' sets global availability.
matches = regex.test (strng) ' performs the search.
Checkexp = Matches
End Function
Method Four
$str = ' http://www.111cn.net/a.jpg ';
$part = ' | (Http://[a-za-z0-9/?&.] *) |si ';
$part 2 = ' | (http[s]?:/ /)? s*w. (?!) (jpg|gif|png)) W*|si ';
Preg_match_all ($part 2, $str, $STR);
Var_dump ($STR);