Question: i need to find inline javascript with php regex. I can find external script, but not inline, can anybody help me? 

Here is my pattern for external:

```
"/<script(.*?)src(.*?)>(.*?)<\/script\s*>/smi"

```

Any ideas?

Answer: 
```
"/<script((?:(?!src=).)*?)>(.*?)<\/script>/smix"

```

(My first look-ahead regex ;))

Please note that you should not parse HTML with regexes, see:

<https://stackoverflow.com/a/1732454/221213>
```
"/<script[^\>]*>(.?)<\/script>/si"

```