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>/

```
replace returns the processed string, so you have to store the result anywhere

see <http://www.w3schools.com/jsref/jsref_replace.asp>