in reply to Why is this regex greedy?

Short answer, the regex engine works left to right.

Long answer, go read Friedl's articles in The Perl Journal or his book on Mastering Regular Expressions.