• BluesF@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    3
    ·
    1 year ago

    I don’t think that using regex to basically do regex stuff on strings that happen to also be HTML really counts as parsing HTML

      • fuckwit_mcbumcrumble@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        1 year ago

        My regex at work is full of (<[^>]+\s*){0,5} because we don’t care about 90 percent of the attributes. All we care is it’s class=“data I want” and eventually take me to that data.