correct regexp

I corrected the rewrite regexp to let anchors usable