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/.