cm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agoLike programming in bashlemmy.mlexternal-linkmessage-square187fedilinkarrow-up11.64Karrow-down116cross-posted to: programmerhumor@lemmy.ml
arrow-up11.62Karrow-down1external-linkLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agomessage-square187fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarekameecoding@lemmy.worldlinkfedilinkarrow-up32arrow-down2·4 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-up10·4 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.