crdoconnor / xeger

Library to generate random strings from regular expressions.
Other
117 stars 21 forks source link

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

Open David-Lannion opened 1 year ago

David-Lannion commented 1 year ago

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