Detect HTML links

  • + 2 comments

    I don't think this task teaches responsible use of regex.

    HTML literally can't be parsed this way - not unless you give up completely on matching opening and closing tags. Even if you can get away with it this time (let's assume links never get nested, and never contain additional markup), it's bad practice.

    Teaching people to use regular expressions for this is responsible for the majority of bad parsing code on the web.