I have a string that I'd like to replace all characters other than A-Z, a-z and 0-9 with enchar### where ### is the ascii code for the character e.g. 42 = *.

RegExp seems to be the way to go but I'm not sure how to use it to do this.

Any help appreciated.

DJ