Allow matching against a path

Dont think this is done yet.

But this allows you to a string number or regex directly against a path.

I havent tested what happens if you pass a string number or regex without specifying a path so...