Here is an example string:

```
   Lorem ipsum   
         - dolor sit amet consectetur      
    - adipisicing elit. Adipisci, quam.     

```

What would be the most elegant regex to select all extra spaces EXCEPT for two spaces before the "-" to make an elegant list?

Here is an example desired result:

```
Lorem ipsum
  - dolor sit amet consectetur
  - adipisicing elit. Adipisci, quam.

```

Here is my best guess: `/ {2,}(?! {2}-)/g.`
Sadly, it also selects the two spaces before the "-".

Edit:
I think I'll go with the folowwing:

```
let str = `       Lorem ipsum   
             - dolor sit amet consectetur      
        - adipisicing elit. Adipisci, quam.   `;
str = str.replace(/ {2,}/g, "");
str = str.replace(/-/g, "  -");
console.log(str);

```