this post was submitted on 10 Mar 2026
59 points (94.0% liked)

Programmer Humor

30295 readers
1556 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 30 points 1 day ago* (last edited 16 hours 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 14 points 1 day ago (2 children)
[–] hoshikarakitaridia@lemmy.world 17 points 22 hours ago* (last edited 22 hours ago) (1 children)
[–] Venator@lemmy.nz 1 points 3 hours 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 2 points 16 hours ago

What. The. Fuck.