How to create a regular preg_replace
for preg_replace
to replace
IsActive => is_active
NewParamA => new_param_a
SNTest => s_n_test
ABC => a_b_c
ABCd => a_b_cd
That is, each under letter should be preceded by an underscore (except for the first letter).