search for: parsemessage

Displaying 1 result from an estimated 1 matches for "parsemessage".

Did you mean: parse_message
2008 Jun 18
3
Best Way of Extracting Key Value from File
...: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline testing ... ''): c:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'' c:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'' /app/controllers/messages_controller.rb:66:in `parseMessage''; So this is definitely a problem and I can''t use YAML. I tried regexps but I am new to them and I can only extract the entire line like so : result = /^From:.*$/.match(@emailcontent) # where @email content is the text of the email Regexp result matchdata object gets the entir...