I have a file with text like below. I need to remove anything between "AS" and "$$" but keep those 2 words. The replacement should be for the same line and I dont need to check for multi lines as AS and $$ always are in the same line
AS '-1', $$
Some extra lines 1
some extra lines 2
AS '24:-1', $$
Some extra lines 3
some extra lines 4
AS 'abc-1', $$
Some extra lines 5
some extra lines 6
The output should be
AS $$
Some extra lines 1
some extra lines 2
AS $$
Some extra lines 3
some extra lines 4
AS $$
Some extra lines 5
some extra lines 6