fix minor bug with RegularExpression.cpp only detected by GCC