• schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    no, this is one of the worst answers on Stack Overflow

    OP had a specific question to capture opening tags. The thing OP asked about can be done with regular expressions. It is true that arbitrarily nested languages like HTML cannot generally be parsed with regular expressions, but that is not what OP asked about.

    • fartsparkles@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      This is StackOverflow after all. Your question is wrong. Your problem is wrong. You are wrong. I am right. Thread locked. Go read this other post that is totally unrelated to your problem I’ve decided isn’t the problem you’re facing because. I. Am. Right.

      • Quetzalcutlass@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 month ago

        Could be worse. At least it’s not Microsoft’s support forums:

        Hey, I see you’re having problems with <copy-paste key words from OP>. Try the following and see if it fixes your issue.

        Open a command prompt and enter ”sfc /scannow".

        I hope this helps!

        (Reply marked as solution, thread closed.)

        • deadbeef79000@lemmy.nz
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          1 month ago

          I have X years experience with {keyword salad}.

          Can you confirm {details already in the opening post}?

  • communism@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    OP isn’t trying to parse HTML though… they are trying to detect opening xml tags. Which seems quite achievable with regex.