I’ve been trying to get a JavaScript regex command to turn something like \"thisString\" into \"This String\" but the closest I’ve gotten is replac
\"thisString\"
\"This String\"
My version
function camelToSpace (txt) { return txt .replace(/([^A-Z]*)([A-Z]*)([A-Z])([^A-Z]*)/g, '$1 $2 $3$4') .replace(/ +/g, ' ') } camelToSpace("camelToSpaceWithTLAStuff") //=> "camel To Space With TLA Stuff"