News for hackers. Stuff that matters.
Re:In search of the perfect URL validation regex (2010) by axiosgunnar on Saturday September 25, 2021 @03:32PM (#28655622)
> ⌘\.ws

I guess this is the regex equivalent of overfitting :)

Re:In search of the perfect URL validation regex (2010) by saghm on Saturday September 25, 2021 @03:34PM (#28655636)
Yeah, not to mention "code.google.com" being right in there!
Re:In search of the perfect URL validation regex (2010) by maciejgryka on Saturday September 25, 2021 @03:40PM (#28655667)
Yeah, grex (the library powering this) is really cool, but doesn’t generalize very well. I’m sure there are ways to improve it, but it’s not a trivial thing to do.