That's why I used "^" and "$", so the pattern will repeat for as many 
lines as necessary when using String#scan
You can make parts of the expression optional if you need to.

That looks like a hideous way to store and reference data. I'd look into 
alternatives if possible.

-- 
Posted via http://www.ruby-forum.com/.