in reply to How Greedy is Greedy: A Regex Question

Non-greediness is something you really have to understand. It doesn't mean "shortest", just like "greedy" doesn't mean "longest". It just means the engine would rather not match characters, given the choice.

Read chapter 6 of my book for some good examples. (Let me know if they're good examples.)

japhy -- Perl and Regex Hacker
  • Comment on Re: How Greedy is Greedy: A Regex Question