Anchors in regex don't seem to be working.