Filtering a diff with a regular expression
问题 It seems that it would be extremely handy to be able to filter a diff so that trivial changes are not displayed. I would like to write a regular expression which would be run on the line and then pass it another string that uses the captured arguments to generate a canonical form. If the lines before and after produce the same output, then they would be removed from the diff. For example, I am working on a PHP code base where a significant number of array accesses are written as my_array[my