xeger icon indicating copy to clipboard operation
xeger copied to clipboard

IP regex not working (with non capturing groups imbricated and negative lookahead)

Open David-Lannion opened this issue 2 years ago • 0 comments

Trying IP regex : ^(?:(?:1\d{2}|[1-9]?\d|2[0-4]\d|25[0-5])(?:\.(?!$)|$)){4}$ Is generating : 255.226124138. 9253252.112 96.119.163.252. 251.106.136.16 Only the last one is good

David-Lannion avatar Sep 12 '23 15:09 David-Lannion