Script Help!? Delete if line starts with 'xx'

As a newbie. your are being fairly adventuresome...
I am not a regex expert but please see part 2 of

as it gives some useful sources that may help you.

One of my colleagues may help you further