Question: can you help me with the following code ?

```
if(preg_match_all('!http://.+\.(?:jpe?g|png|gif)!Ui', $content, $results)) && ( WORDPRESS IS TRUE ) {...} ELSE {...}

```

Thank you!

Answer: 
Or maybe actually use the regular expression to test for that?

```
preg_match_all('!http://.+wordpress.*\.(?:jpe?g|png|gif)!Ui', $content, $results);

```
You don't need Regex for the second part:

```
$WP=(stripos($content,'wordpress')!==false);

```

`$WP` is now either `true` or `false` (contains or doesn't contain 'wordpress')