Your regexp breaks most of urls

```
~^(data:|([a-z]+:\/)?\/)~i
```