Save state before re-write of RegEx.