Hello Andreas
Andreas Röhler <andreas.roehler@online.de> writes:
author = {somename},
editor = {},
title = {sometitle},
subtitle = {},
series = {},
url = {}
I want to find a regexp that matches every line with empty {} except
of the "subtitle line". I've come that far:
Got it with:
[^s]?[^u]?[^b]?[^t]?[^i]?[^t]?[^l]?[^e] = {},?$
Please don't ask why :)
That's working. Thanks. (I don't ask.)
Anyway--you will know that and it's not the precise
answer-- it might be useful to point at
M-x shell-command-on-region
grep {} | sed /subtitle/d
as an easy-to-use solution.
It's a good idea to use a sed pipe. But it doesn't matter how much
there is to type, since I need the expression for a function. So I
only have to type it once.