> I want to seperate a string of commands seperated by semi-colons...
> 
> here's what I have so far by way of a test...
> 
> happy = input.scan(/[0-9 a-z]+(?=;)/)
> 
> this does what I want, almost.  I only get strings with semicolons
> AFTER
> them.  This cuts off the last command in the list.. how can I get
> ALL the
> strings SEPERATED by semicolons.
> 
> Regular expressions give me a headache..

How about:  

irb(main):003:0> "here  ; is;a;command;  string".split(/\s*;\s*/)
["here", "is", "a", "command", "string"]



=====
--
Yahoo IM: michael_s_campbell

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/