External Publication
Visit Post

Alright nerds, who can guess what this RegEx matches?

People > Companies ❤️ - programming.dev [Unofficial] March 10, 2026
Source

submitted by NoFood4u to programmer_humor 74 points | 20 comments

(?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`!()\[\]{};:'".,<>?«»“”‘’]))

Discussion in the ATmosphere

Loading comments...