fix for regex inside of anchors