Forum Discussion

Mauricio_Cusine's avatar
Mauricio_Cusine
Icon for Nimbostratus rankNimbostratus
Aug 22, 2007

Validate IP address with regexp

Hello,

 

I am trying to check if a IP address is valid in the bigip with regexp (I don't know if anybody know other method).

 

 

The regexp is the follow but don't work. Anybody can help me?.

 

 

I need to check if the ip address is in the range 1-255 in the 4 octects.

 

King regards,

 

Mauro

 

 

regexp

 

\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b