cm0002@lemmy.world to Programmer Humor@programming.dev · 7 months agoLike programming in bashimagemessage-square8linkfedilinkarrow-up12arrow-down10
arrow-up12arrow-down1imageLike programming in bashcm0002@lemmy.world to Programmer Humor@programming.dev · 7 months agomessage-square8linkfedilink
minus-squarekameecoding@lemmy.worldlinkfedilinkarrow-up1·7 months 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·7 months 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.