this post was submitted on 10 Mar 2026
92 points (95.1% liked)

Programmer Humor

30321 readers
2794 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
(?i)\b((?:(?:[a-z][\w-]+:)?(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))
you are viewing a single comment's thread
view the rest of the comments
[–] neidu3@sh.itjust.works 40 points 2 days ago* (last edited 1 day ago) (1 children)

Looks like an URL matcher of some sorts, not limited to HTTP. Kudos for handling parentheses as valid URL characters.

[–] refalo@programming.dev 20 points 2 days ago (3 children)
[–] hoshikarakitaridia@lemmy.world 23 points 1 day ago* (last edited 1 day ago) (1 children)
[–] Venator@lemmy.nz 2 points 1 day ago

It seems most browsers basically ignore them:

https://lemire.me/blog/2026/02/28/you-can-use-newline-characters-in-urls/

So probably not worth remembering anyway.

[–] Sphks@jlai.lu 4 points 1 day ago

What. The. Fuck.

Also no encoded basic auth or raw ip addresses (not that a useful website would likely use raw ipv4 or 6 since that causes huge CORS and sometimes even DNS issues...)