http://www.perlmonks.org?node_id=371530


in reply to Why is this regex greedy?

If you are running perl 5.6 or newer (and you are, right?) you might be able to insert use re 'debug'; which will give you detailed output from regex engine. That's a good way to debug your regular expressions.

2share!2flame...