in reply to Re: regex and "Functional Programming"
in thread regex and "Functional Programming"

JavaScript does this already.

... = foo.replace( / regex /g, 'replacement' );