Match in Regular Expression is always longest match.
If the string = "abcd efg 123-444 and xyz 333-1234"
It matches to whole with the pattern ".+\d{3}-\d+"
.*? or .+? enables to match for each appearance of the pattern.
Understand?
BTW $ represents End of string so T$ only matches to T at the end of the string.
Bookmarks