Method: Excite::CRFParser.strip_punct

Defined in:
lib/excite/crfparser.rb

.strip_punct(str) ⇒ Object



77
78
79
# File 'lib/excite/crfparser.rb', line 77

def self.strip_punct(str)
  str.gsub(/[^[:alnum:]]/, '')
end