pmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 1 年前Parsing HTML with regexlemmy.sdf.orgimagemessage-square37fedilinkarrow-up1355arrow-down114file-text
arrow-up1341arrow-down1imageParsing HTML with regexlemmy.sdf.orgpmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 1 年前message-square37fedilinkfile-text
minus-squareBluesF@lemmy.worldlinkfedilinkarrow-up18arrow-down3·1 年前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
minus-squarefuckwit_mcbumcrumble@lemmy.worldlinkfedilinkarrow-up3·edit-21 年前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.
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
deleted by creator
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.