$strtrm=eregi_replace("[_a-z0-9-])","",$strtrm);
should this not return the string with only letters numbers _ and - ??
I do not want to get to complicated and it really seems a one line ereg replace would do this but this one keeps all the charactures that I did not want.
Any ideas?