Changing the [^\w] to \W

It expresses the same thing, just more succinctly