pmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 7 months agoParsing HTML with regexlemmy.sdf.orgimagemessage-square39fedilinkarrow-up1345arrow-down114file-text
arrow-up1331arrow-down1imageParsing HTML with regexlemmy.sdf.orgpmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 7 months agomessage-square39fedilinkfile-text
minus-squarefuckwit_mcbumcrumble@lemmy.worldlinkfedilinkarrow-up1·edit-27 months 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.
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.