BaseTools: Regular Expressions refactor out the hex char for later reuse