replace special chars with new special char

str = String.new("ler-2545654-45-an-audience-with---
corporate_counsel")
=> "ler-2545654-45-an-audience-with---corporate_counsel"

str.sub('-', '/').sub('-', '/').sub('-', '/')
=> "ler/2545654/45/an-audience-with---corporate_counsel"

Hi Rick,
Thank you very much. That works fine. Thanks alot.

Regards,
PriyaBuvan

you're welcome