How Do I Replace Text with Number using RegEx?

A post was split to a new topic: [MACRO: Replace Text with Numbers (or, Lookup Data Using RegEx) Example)