open_in_new
content_copy
function pigIt(str){ return str.replace(/(\w)(\w*)(\s|$)/g, "\$2\$1ay\$3") }