in reply to Re: Regex style and efficiency
in thread Regex style and efficiency

As is, the substr/index version assumes the anchor is present. That may or may not be a problem.