I would like to convert this:
var result = mystring.replace(/[^a-zA-Z0-9]+/g, \' \');
to a functioning