I have an inherited an old ugly script I'm trying to clean up a bit.
What I am currently working on is a line like the following:
Complication=" and ta.secID = 011222 and upper(ta.proc_ctrl_no) != 'IMPACT'";;
I just want to combine a search for lines that begin with Complication
and then remove the double ";;" at the end of those lines.
There are other case blocks in the script, so I don't want to just remove them from any line. I have tried various combinations using \1 but I seem to keep grabbing the entire line.
Is there a way to say search for lines beginning with ___ AND remove the last two characters? I can do each separately, but I can't figure out how to combine them.