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

Regex for BGP 32Bit Private AS Range

neilobrien
Beginner
Beginner

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
Rising star
Rising star

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

HTH.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: