Framework and docs for what I plan on doing with replacement, but no actual replacement performed yet - first, a refactoring to xregexp