unnecessary checking of `size` with `second regex` if matched with first one
Merge pull request #13072 from kuldeepaggarwal/unwanted-code

unnecessary checking of `size` with `second regex` if matched with former regex