(?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`!()\[\]{};:'".,<>?«»“”‘’]))
  • marlowe221@lemmy.world
    link
    fedilink
    English
    arrow-up
    39
    ·
    13 hours ago

    This is an example of the old adage that “When you use a regex to solve a problem, you end up with two problems.”