I am writing code that uses the C++ standard library\'s Basic RegEx pattern matching. The pattern matching as used is currently a bottleneck, and I want to optimize the comm