Fix a pattern mixup.

\ --> /

found by klaudiu@freenode.

I added some short test asserts to confirm the pattern works.