It is greedy, but it can't match hyphens because they're included in the negative character class.Quote:
1. How is it that '/[^\d-]*(-)[^\d-]*/' is not greedy?
For which pattern?Quote:
2. In the following 3-,-,,-,,,-,,,,-,,,,,-4,5 what is the last match? I guess I am still trying to wrap my mind around the 0 or more quantifier.
