fix issue 11775 std.regex should check for valid repetition range
Merge pull request #1791 from blackwhale/range-bug-regex

fix issue 11775 std.regex should check for valid repetition range