B
brendan
Hi,
I need to get replace all the uppercase characters in a string with a
lowercase character and a '-'
__ie __________________________________________________
'backgroundColor' becomes 'background-color'
'borderWidth' becomes 'border-width';
-----------------------------------------------------
in PHP strtolower(ereg_replace("[A-Z]", "-\\0" , $var)); works
but obviously I'm not using php
any help much appreciated
cheers
brendan.
I need to get replace all the uppercase characters in a string with a
lowercase character and a '-'
__ie __________________________________________________
'backgroundColor' becomes 'background-color'
'borderWidth' becomes 'border-width';
-----------------------------------------------------
in PHP strtolower(ereg_replace("[A-Z]", "-\\0" , $var)); works
but obviously I'm not using php
any help much appreciated
cheers
brendan.