You might be thinking “Regular Expressions”? Are we going to program?
Sort of! Regular expressions are being used by IOS in some cases to search and match multiple patterns.
In many cases we use this with BGP filtering as we’ve seen in Simple BGP Multi-home Topology Part 3.
Some time ago INE has posted a very explanatory post about Regular Expressions in BGP
Here is the official Cisco post about regular expressions.