Newbe here, learnt some basics and came across this regular expression. Would be great if someone can help deconstruct it for me. Thank you in advance !
$source = "ExpandCamelCaseAPIDescriptorPHP5_3_4Version3_21Beta"; preg_replace('/(?<!^)([A-Z][a-z]|(?<=[a-z])[^a-z]|(?<=[A-Z])[0-9_])/', ' $1', $source); // outputs:Expand Camel Case API Descriptor PHP 5_3_4 Version 3_21 Beta