cm0002@lemmy.world to Programmer Humor@programming.dev · 9 days agoLike programming in bashimagemessage-square18fedilinkarrow-up140arrow-down10
arrow-up140arrow-down1imageLike programming in bashcm0002@lemmy.world to Programmer Humor@programming.dev · 9 days agomessage-square18fedilink
minus-squarekameecoding@lemmy.worldlinkfedilinkarrow-up2·9 days 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-up1·9 days 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.