fix regexp anchors