In BGP, to see AS path prepended routes I use below Regex.
sh ip bgp regexp _([0-9]+)(_\1)+_
Can anyone tell me how to write regular expressions to filter routes matching below conditions.
1. All BGP routes with no AS path prepends
2. All BGP routes with AS path prepended only 2 times
Are these possible with regular expressions ?