-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the regex finding ip-address-esque content #93
Comments
what do you mean of " improving " ?! |
Hi @devbazregari, thanks for asking! The problem is that the current regex matches more than just valid ip addresses. For example, the current regex would match In other words, we want to refine the regex so that it only matches strings which would be valid ip addresses once the You can see more examples of what we do and do not want this regex to match here. Would you like to work on this? I'm happy to help and advise as needed. |
thank you , i got it . |
bro did my code was usefull? |
Sorry for the late reply - thank you for the PR! I'll take a look at it soon and will follow up with comments in the PR. Thanks 🎉 ! |
Ur Welcome |
We fang anything matching this regex:
(?:^|(?<=\s))([0-9]{1,3}),([0-9]{1,3}),([0-9]{1,3}),([0-9]{1,3})(?=\s|$)
... we should improve the regex to be more accurate and avoid false positives.The text was updated successfully, but these errors were encountered: