Making sure regex for dots and slashes matches entire string

Caused problems when requiring stuff that just matched part