pmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 1 year agoParsing HTML with regexlemmy.sdf.orgimagemessage-square37fedilinkarrow-up1350arrow-down114file-textcross-posted to: calligraphy@lemmy.sdf.org
arrow-up1336arrow-down1imageParsing HTML with regexlemmy.sdf.orgpmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 1 year agomessage-square37fedilinkfile-textcross-posted to: calligraphy@lemmy.sdf.org
minus-squareBluesF@lemmy.worldlinkfedilinkarrow-up18arrow-down3·1 year 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-21 year 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.