I have been testing some as-path match scenarios using BGP filtering and I found that on IOS XE, following two Regex matches giving the same results.
What I want is to match is, any prefix if it originated from 12031 ( I don't care what path it took to get to me)
ip as-path access-list 100 permit .*12031$
ip as-path access-list 200 permit 12031$
So what I gather from the results is that if you didn't have ".*" at the beginning, it looks like the router assumes that I had "match anything" regardless.
Am I getting this right?
Thanks