unnecessary checking of `size` with `second regex` if matched with first one