cm0002@lemmy.world to Programmer Humor@programming.dev · 7 days agoLike programming in bashlemmy.mlimagemessage-square179fedilinkarrow-up11.6Karrow-down116
arrow-up11.58Karrow-down1imageLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 7 days agomessage-square179fedilink
minus-squarekameecoding@lemmy.worldlinkfedilinkarrow-up31arrow-down2·7 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-up11·7 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.