Question: I am php developer, converting ruby script to PHP, I couldn't find this syntax anywhere. Please help me understand what it means.

```
var1 = "" if self.title.match(/(#{var1})/i)

```

Answer: 
Well... if it starts with `data:` then it's a data URL. So... `if( substr($url,0,5) == "data:")` should do it.

Remember: KISS.
Check the extension of the **URL**.

**Regex:** `\.[^\.]*$`