From: "Robert Klemme" <bob.news / gmx.net>
> 
> Regexps can help here - dunno about performance
> 
> class String
>   def lcommon(s)
>     len = s.length
>     Regexp.new("^" << s.gsub( /./, '(?:\\&' ) << ( ")?" * 
> len ) ).match(self)[0]
>   end
> end

Heheheheheheheh.... Nice.  ;)


Regards,

Bill