cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
486
Views
0
Helpful
1
Replies

Regex for BGP 32Bit Private AS Range

neilobrien
Level 1
Level 1

Hi All,

 

Similar to the regex /(6451[2-9]|645[2-9][0-9]|64[6-9][0-9][0-9]|65[0-4][0-9][0-9]|655[0-2][0-9]|6553[0-5])/ for 16bit Private AS 64512-65535, I'm looking for a regex that will cover the 32bit Private AS Range 4200000000 - 4294967294.

 

Unfortunately, /[4200000000-4294967294]/ won't work in my case, I could use /42[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/ but I think that casts the net too far.  

 

I've been looking around and can't find anything suitable.

 

Thanks in advance,

Neil

1 Reply 1

rais
Level 7
Level 7

The last expression seems the one to work. It can't cast the network too far as 4294967294 is the limit.

HTH.

Review Cisco Networking products for a $25 gift card