Better regex parsing

* Better regex parsing to handle spaces, underscores and hyphens.
* Make url lowercase.