I am trying to remove all html tags using this regex:

```
<.+>(.+)</.+>

```

![Regular expression visualization](https://www.debuggex.com/i/JGHNA_euE6Tu8yYN.png)

And I replace like this: 

```
"<b onclick=\"foo\">Foo</b> bar".replace(new RegExp("\\<.{1,}\\>(.{1,})\\</.{1,}\\>", "g"), "$1")

```

This works fine, however, this doesnt work: 

```
"<b onclick=\"foo\">Foo</b> bar <b>hello</b>".replace(new RegExp("\\<.{1,}\\>(.{1,})\\</.{1,}\\>", "g"), "$1")

```

Since I get `hello`