cm0002@lemmy.world to Programmer Humor@programming.dev · 1 month agoLike programming in bashlemmy.mlimagemessage-square178linkfedilinkarrow-up11.57Kcross-posted to: programmerhumor@lemmy.ml
arrow-up11.57KimageLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 1 month agomessage-square178linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarekameecoding@lemmy.worldlinkfedilinkarrow-up29·1 month 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·1 month 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.