Modified some Regex functions to use the Cps.cont workflow from ExtCore instead of manually handling the continuation-passing.
Minor simplifications using ExtCore functions.