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);

```
```
if(
(preg_match_all('#http://.+\.(?:jpe?g|png|gif)#Ui', $content, $results)) && 
stripos($content, 'wordpress') !== false)
{

}else{

}

```