cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoLike programming in bashlemmy.mlimagemessage-square184fedilinkarrow-up11.59Karrow-down116cross-posted to: wwwopera@lemm.eeprogrammerhumor@lemmy.ml
arrow-up11.58Karrow-down1imageLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square184fedilinkcross-posted to: wwwopera@lemm.eeprogrammerhumor@lemmy.ml
minus-squarekameecoding@lemmy.worldlinkfedilinkarrow-up32arrow-down1·1 day agoMost of regex is pretty basic and easy to learn, it’s the look ahead and look behind that are the killers imo
minus-squarePoolloverNathan@programming.devlinkfedilinkEnglisharrow-up10·1 day ago(?=) for positive lookahead and (?!) for negative lookahead. Stick a < in the middle for lookbehind.
Most of regex is pretty basic and easy to learn, it’s the look ahead and look behind that are the killers imo
(?=)
for positive lookahead and(?!)
for negative lookahead. Stick a<
in the middle for lookbehind.