diff has an option -I regexp, which ignores changes that just insert or delete lines that match the given regexp. I need an analogue of this for the ca
diff
-I regexp
Assuming X and Y are single characters, then -I 'ab[XY]d' works fine for me.
-I 'ab[XY]d'