Talk:Maximal munch

Latest comment: 15 years ago by 67.160.227.245

How goofy. I suppose calling it the "longest possible match" rule would have been too boring, or something.

It is now commonly called "greedy match" also. -- SasQ —Preceding unsigned comment added by Sasq777 (talkcontribs) 15:06, 11 June 2008 (UTC)Reply

Is there another method that does things differently than "maximal munch"? Because if there is, it should definitely be linked here. Something feels missing. 134.102.206.230 (talk) 12:31, 4 July 2008 (UTC)Reply

The obvious alternative is to accept the minimal match. There are a lot of situations where this is undesirable (if we see "23" we usually want one token, "23", and not two tokens, "2" and "3") so this is less popular and to my knowledge doesn't have a snappy name like "maximal munch". If there's an article on the topic, though, I agree that it should be linked. 67.160.227.245 (talk) 06:55, 12 March 2009 (UTC) swiftReply

Why is there a code example present in the article with no text to explain it? I assume it was put there to illustrate the kind of situation where maximal munch can lead to problems, but there's no longer an explanation in the article. 67.160.227.245 (talk) 06:55, 12 March 2009 (UTC) swiftReply