Updated regular expressions in doModifyLimitQuery