I made a function to break a string to break it into parts.
I read on MDN that by putting regex in parentheses I could refer it later by using `$1` but for some reason my code is not working.
I want this function to return `'url this'` but it is return `'$ 1his'`.

Please Help!

```js
const someFunction = str => {
 return str.replace(/([A-Z]+)/g,('$1'.slice(0,-1).toLowerCase() + ' ' + '$1'.slice(-1).toLowerCase()));
  }
console.log(someFunction('URLThis'))
```