Joshua Muheim wrote:
> Hi all
> 
> What's the fastest way to convert "ThisIsSomeString" to 
> "this_is_some_string"?
> 
> Thanks for help,
> Joshua
> 

p "ThisIsSomeString".scan(/[A-Z][a-z]+/).map{|w|w.downcase}.join('_')
p "this_is_some_string".split('_').map{|w|w.capitalize}.join

lopex