Validating an IP with regex

后端 未结 5 1564
一整个雨季
一整个雨季 2021-01-14 01:14

I need to validate an IP range that is in format 000000000 to 255255255 without any delimiters between the 3 groups of numbers. Each of the three groups that the final IP c

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-14 01:16

    \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
    

    I use this RegEx for search all ip in code from my project

提交回复
热议问题