note
rhesa
Your use of grep is adorable! I think it's by far the most readable version, with the clearest exposition of intent.
<p>
The regexp on the other hand... the approach certainly is neat, i'll give you that ;) ++ for speed and ingenuity, but ouch does my head spin!
554374
554398