this post was submitted on 10 Mar 2026
56 points (93.8% liked)

Programmer Humor

30295 readers
1443 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
[–] vk6flab@lemmy.radio 10 points 1 day ago (2 children)

At first glance IP address or URL, embedded in HTML, whatever it is, it's a doozy. I wonder what the performance of it is like.

[–] towerful@programming.dev 8 points 1 day ago

It works out as O(regex^n)

[–] tdawg@lemmy.world 2 points 1 day ago