From: "David A. Black" Date: 2009-07-23T10:14:52+09:00 Subject: Re: Question about text parsing Hi -- On Thu, 23 Jul 2009, 7stud -- wrote: > Stephen Beard wrote: >> Thanks for the quick and thorough replies. They all look great. >> >> I am so terrible with regular expressions. Those links look like a good >> place to go to improve, thanks Rob. > > Always look to a string method first. split() rules the world, and > you've made good use of it. String method isn't the opposite of regular expression, though. It's important to understand regexes to use split (as well as scan and (g)sub) effectively. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Now available: The Well-Grounded Rubyist (http://manning.com/black2) Training! Intro to Ruby, with Black & Kastner, September 14-17 (More info: http://rubyurl.com/vmzN)