Steve Ross
1/23/2008 6:32:00 AM
Ok:
comment =<<COMMENT
This is a ruby code.
More lovely code.
Better than PHP.
That is it.
COMMENT
comment.gsub(/[-.,!:;'"]/, '').split(/\s+/).map{|w|
w.downcase}.uniq.sort
=> ["a", "better", "code", "is", "it", "lovely", "more", "php",
"ruby", "than", "that", "this"]
On Jan 22, 2008, at 9:17 PM, Zenki Nine wrote:
> This is a ruby code.
> More lovely code.
> Better than PHP.
> That is it.
> COMMENT