BaseTools: use single RegExp for token matching