The command below should work unless “any character” means something different for you than for Vim:
:g/abc.*xyz
.means “any character except an EOL”.*means “any number (including 0) of the previous atom”.1,$could be shortened to%.:globalworks on the whole buffer by default so you don’t even need the%.- The closing
/is not needed if you don’t follow:g/patternby a command as in:g/foo/d.