If I understand the other thread, I would need to enumerate all possible alternatives, each one to be 'or'ed with the others. I doubt that using '.*' as the matching string would accomplish what I want, which is to match all the possible commands that could appear between two statements without globbing more than it should.
To clarify, here's an example.
The config currently contains the following:
access-list 1 permit 10.90.9.0 0.0.0.255
access-list 1 permit 10.90.99.0 0.0.0.255
access-list 1 permit 10.90.92.0 0.0.0.31
snmp-server community test RO 1
But soon, I'll be adding another ACL, so the config will look like this:
access-list 1 permit 10.90.9.0 0.0.0.255
access-list 1 permit 10.90.99.0 0.0.0.255
access-list 1 permit 10.90.92.0 0.0.0.31
access-list 5 remark testing
snmp-server community test RO 1
And someone may add an extended access list, making it look like this:
access-list 1 permit 10.90.9.0 0.0.0.255
access-list 1 permit 10.90.99.0 0.0.0.255
access-list 1 permit 10.90.92.0 0.0.0.31
access-list 5 remark testing
access-list 101 remark testing
snmp-server community test RO 1
There may be an arbitrary number of access lists, each with their own ID. My thinking is that there will be other similar situations where enumerating the list of possilities is not very feasible.
So I think the preferred approach is to fix the '...' syntax so it matches 0 or more, instead of updating the docs.