pmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 8 months agoParsing HTML with regexlemmy.sdf.orgimagemessage-square40fedilinkarrow-up1352arrow-down114file-textcross-posted to: calligraphy@lemmy.sdf.org
arrow-up1338arrow-down1imageParsing HTML with regexlemmy.sdf.orgpmjv@lemmy.sdf.org to linuxmemes@lemmy.world · 8 months agomessage-square40fedilinkfile-textcross-posted to: calligraphy@lemmy.sdf.org
minus-squarefuckwit_mcbumcrumble@lemmy.worldlinkfedilinkarrow-up3·edit-28 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.