Joel Pearson wrote in post #1131246:
> Not perfect, but something you could start with:
>
> result = cmd[ /\A(astro|core|fm_shell|formality|gca_shell|xa)\z/i, 1 ]

Hi Joel,

How to go on with this and set toolName accordingly? Could you gic=ve an 
example? Thanks.

Previn

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