On Dec 8, 5:47=A0pm, Ralph Shnelvar <ral... / dos32.com> wrote:
> [Note: =A0parts of this message were removed to make it a legal post.]
>
> Assume I have camelized string like
> =A0 BenefitsAndFeatures
> and I want to convert that to
> =A0 Benefits-And-Features
>
> What is a good "Ruby way" to do that?

The good Ruby way:

"BenefitsAndFeatures".gsub( /.(?=3D[[:upper:]])/, '\&-' )
    =3D=3D>"Benefits-And-Features"