Mar-16-2021, 03:01 AM
It retrieves all strings that consist of:
The strings in your answer: '19', '456', and '20' are all the substrings in your original that meet those conditions.
't' isn't a digit, so 't' isn't part of the match string that is returned. But '19' satisfies all the conditions, so is returned.
'1' isn't a valid answer because your match requires a minimum of 2 digits that are adjacent to each other.
- One or more digits followed by,
- exactly one digit.
The strings in your answer: '19', '456', and '20' are all the substrings in your original that meet those conditions.
't' isn't a digit, so 't' isn't part of the match string that is returned. But '19' satisfies all the conditions, so is returned.
'1' isn't a valid answer because your match requires a minimum of 2 digits that are adjacent to each other.