ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Top Ten Data Crunching Tips and Tricks
Subject:   non-greedy regular expressions is the common term
Date:   2005-06-22 05:52:42
From:   GregWilson
Response to: non-greedy regular expressions is the common term

Yes, but (a) there are more Java heads out there than Perl heads (even today), and (b) I believe the term "reluctant" pre-dates the first version of Perl by about twenty years. And let's face it --- if I used the term "non-greedy", some Java head would have complained (and some Lisp programmer would have pointed out that "non-greedy" is ambiguous, since there are N different ways to define pattern matching that aren't strictly greedy, all of which are implemented by the following set of mutually-recursive functions...)