I would like to use regular expressions (.NET) for the following task.
A text file contains the following lines:
=650 \1$aPets$xFiction.
=650 \1$aApartment houses$xFiction.
=650 \0$aPets$xFiction.
=650 \0$aApartment houses$xFiction.
The regex should identify the cases where lines are identical except for the 8th character (0 vs. 1), & then delete the lines where the 8th character is a 1.
Output would then be:
=650 \0$aPets$xFiction.
=650 \0$aApartment houses$xFiction.
(with the rest of the text file unchanged)
If other tools or techniques would be preferable, I'd be happy to learn about those.
Thank you.