handle Num case in blocks in quantifiers in regexes