News for hackers. Stuff that matters.
Re:In search of the perfect URL validation regex (2010) by jabo on Saturday September 25, 2021 @02:12PM (#28655022)
Tangentially related, but mentioning to hopefully save someone time: if you ever find yourself wanting to check if a version string is semver or not, before inventing your own, there is an official regex that’s provided.

I just discovered this yesterday and I’m glad I didn’t have to come up with this:

https://semver.org/#is-there-a-suggested-regular-expression-...

My use case for it: https://github.com/typesense/typesense-website/blob/25562d02...

There are no comments on this comment yet.