76
submitted 21 hours ago* (last edited 21 hours ago) by NoFood4u@sopuli.xyz to c/programmer_humor@programming.dev
(?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 32 points 20 hours ago* (last edited 1 hour ago)

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

[-] refalo@programming.dev 15 points 20 hours ago
[-] Sphks@jlai.lu 3 points 2 hours ago

What. The. Fuck.

[-] hoshikarakitaridia@lemmy.world 13 points 8 hours ago* (last edited 8 hours ago)
[-] Quantenteilchen@discuss.tchncs.de 1 points 8 hours ago

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...)

this post was submitted on 10 Mar 2026
76 points (94.2% liked)

Programmer Humor

30289 readers
3473 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