Convert camelCased words to space separated lowercae values
by Ian Roberts
JavaScript
var myStr = 'thisString';
myStr = myStr.replace(/([a-z])([A-Z])/g, '$1 $2').toLowerCase();
document.write(myStr);
$j( ".vevent" ).each(function( index ) {
//console.log( index + ": " + $j( this ).children().contents('.tags').children().text().replace(/([a-z])([A-Z])/g, '$1 $2').toLowerCase() );
$j(this).addClass( $j( this ).children().contents('.tags').children().text().replace(/([a-z])([A-Z])/g, '$1 $2').toLowerCase() );
});