You can do, $remove(string,!,",£,$,%) ect.
but if you want a loop.
alias strstrip {
var %i = $len($1-)
var %str = $1-
while (%i) {
var %c = $asc($mid(%str,%i,1))
if (((48 > %c) && (%c != 32)) || ((%c > 57) && (%c < 65)) || ((%c > 90) && (%c < 97)) || (%c > 122)) {
var %str = $remove(%str,$chr(%c))
}
dec %i
}
echo -a -> %str
}
syntax; /strstrip the text goes here.
Eamonn.