codegolf.stackexchange.com/a/197234/17216 - this is a sample problem that requires it. I made this answer not so much about the particular problem at hand (which is fairly trivial) and more about a comparison of how it can be done in various regex engines.