When comparing running to either startup I always run across a self-signed certificate in the running config that is loaded from NVRAM. I have tried modifying some of the examples from the manual, but it doesn't ever seem to do the trick.
For example:
I have a line that begins with
crypto pki trustpoint
and I want to ignore from that line through any number of lines until it sees
quit
and I have tried using this expression ^crypto pki trustpoint.*.*\n(.*\n)*.*^quit
So far I have had little to know success.