spujb@lemmy.cafe to 196@lemmy.blahaj.zoneEnglish · 5 days agorulefiles.catbox.moeimagemessage-square56linkfedilinkarrow-up1249arrow-down16file-text
arrow-up1243arrow-down1imagerulefiles.catbox.moespujb@lemmy.cafe to 196@lemmy.blahaj.zoneEnglish · 5 days agomessage-square56linkfedilinkfile-text
the original said reggae but i misread it as regex and got this idea lol original comic artist: thisstupidtwink@insta
minus-squareglibg10b@lemmy.ziplinkfedilinkEnglisharrow-up5·5 days agoI use it in Vim. Sometimes you want to rename a variable that’s present multiple times in the same line
minus-squareexu@feditown.comlinkfedilinkEnglisharrow-up5·5 days agoWhy not just match for the variable and use /g?
minus-squareprenatal_confusion@feddit.orglinkfedilinkEnglisharrow-up4·5 days agoWhy would you go the easy way when there is a complicated but infinitely cooler way?!
minus-squareglibg10b@lemmy.ziplinkfedilinkEnglisharrow-up2·5 days agoI assumed that’s what they meant by “group bit”. I guess maybe they were talking about capture groups
minus-squareNigelFrobisher@aussie.zonelinkfedilinkEnglisharrow-up5·5 days agoTrue, regex is nothing if not an everything tool!
I use it in Vim. Sometimes you want to rename a variable that’s present multiple times in the same line
Why not just match for the variable and use
/g?Why would you go the easy way when there is a complicated but infinitely cooler way?!
I assumed that’s what they meant by “group bit”. I guess maybe they were talking about capture groups
True, regex is nothing if not an everything tool!