Removes regexp backreferences from code
Brought to you by:
mr_milk
Removes regexp backreferences ($1, $2, ...) when applied to a php file containing eg preg_replace with a complex regular expression containing backreferences
I used phpStylist with the following options:
--keep_redundant_lines --space_after_comma --space_around_assignment --align_var_assignment --space_around_comparison --space_around_logical --space_around_colon_question --line_before_function --line_before_curly_function --space_after_if --line_before_curly --add_missing_braces --space_inside_for --indent_case --vertical_array --align_array_assignment --space_around_double_arrow --line_before_comment_multi --line_before_comment --indent_size 4
Patch for bug #3445905
I solved it, patch is attached