From: Jim Burgess Date: 2009-09-28T02:49:18+09:00 Subject: Regular expression question Why does: puts /\w+? \w+?/.match "Ein kleiner Satz" return "Ein k" and not "n k" My understanding was that \w represents any alphanumerical character, + means that it occurs at least once and the ? following the plus makes it non-greedy. I would have thought this returned "n k" although that is obviously not correct. Thanks in advance. -- Posted via http://www.ruby-forum.com/.