spujb@lemmy.cafe to 196@lemmy.blahaj.zoneEnglish · 1 month agorulefiles.catbox.moeimagemessage-square52linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1imagerulefiles.catbox.moespujb@lemmy.cafe to 196@lemmy.blahaj.zoneEnglish · 1 month agomessage-square52linkfedilinkfile-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-up0·1 month 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-up0·1 month agoWhy not just match for the variable and use /g?
minus-squareprenatal_confusion@feddit.orglinkfedilinkEnglisharrow-up0·1 month agoWhy would you go the easy way when there is a complicated but infinitely cooler way?!
minus-squareglibg10b@lemmy.ziplinkfedilinkEnglisharrow-up0·1 month agoI assumed that’s what they meant by “group bit”. I guess maybe they were talking about capture groups
minus-squareNigelFrobisher@aussie.zonelinkfedilinkEnglisharrow-up0·1 month 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!