pmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 2 years agoParsing HTML with regexlemmy.sdf.orgimagemessage-square37fedilinkarrow-up1353arrow-down114file-textcross-posted to: calligraphy@lemmy.sdf.org
arrow-up1339arrow-down1imageParsing HTML with regexlemmy.sdf.orgpmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 2 years agomessage-square37fedilinkfile-textcross-posted to: calligraphy@lemmy.sdf.org
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.