pmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 2 years agoParsing HTML with regexlemmy.sdf.orgimagemessage-square37fedilinkarrow-up1355arrow-down114file-text
arrow-up1341arrow-down1imageParsing HTML with regexlemmy.sdf.orgpmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 2 years agomessage-square37fedilinkfile-text
minus-squareBluesF@lemmy.worldlinkfedilinkarrow-up18arrow-down3·2 years agoI 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-22 years agoMy 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.