Changed the constant flags to include regex