G
googler
Hi all,
Say I have a variable $str as below.
$str = "a_long_object_name";
I want to transform $str to something like "aLongObjectName". How can
this be done using regular expression? There can be any number of
constituent words in the original string, each of them separated by an
underscore character.
Thank you.
Say I have a variable $str as below.
$str = "a_long_object_name";
I want to transform $str to something like "aLongObjectName". How can
this be done using regular expression? There can be any number of
constituent words in the original string, each of them separated by an
underscore character.
Thank you.