Menu

#2 Removes regexp backreferences from code

open
nobody
None
5
2011-11-30
2011-11-30
lootek
No

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

Discussion

  • lootek

    lootek - 2011-12-01

    Patch for bug #3445905

     
  • lootek

    lootek - 2011-12-01

    I solved it, patch is attached

     

Log in to post a comment.