add a shared precompiled regular expression
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
gGuidPattern = re.compile(r'{}'.format(_GuidPattern))\r
gGuidPatternEnd = re.compile(r'{}$'.format(_GuidPattern))\r
\r
+## Regular expressions for HEX matching\r
g4HexChar = re.compile(r'{}{{4}}'.format(_HexChar))\r
+gHexPattern = re.compile(r'0[xX]{}+'.format(_HexChar))\r
\r
#\r
# A global variable for whether current build in AutoGen phase or not.\r