Question: I'm trying to remove all from a string.

```
runReportReq.responseText.replace(/\<style>.*?\</style>/, '')

```

Can anyone show me where I'm going wrong?

Answer: 
You've not escaped the right character, try with:

```
/<style>.*?<\/style>/

```
You need backreferences...

The regex:

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

```

Would allow you to replace with backreferences by `$1$2`

So, `<style>asdasd</style>` would result in `<style></style>`