But this regex will also match an empty
string, so the output of the program should be:
01234
4
Where the 0 in the first line is the starting index of the first match in the orginal string, and the 1234 is the actual matched sub-string.
The second line only displays the starting index of the second match, because the second match is an empty string.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.