VegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 months agoRegex flavorslemmy.worldimagemessage-square19fedilinkarrow-up1102arrow-down15
arrow-up197arrow-down1imageRegex flavorslemmy.worldVegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 months agomessage-square19fedilink
minus-squarefrezik@midwest.sociallinkfedilinkarrow-up1·edit-23 months agoI don’t. It may look less like line noise, but it doesn’t unravel the underlying complexity of what it does. It’s just wordier without being helpful. https://www.wumpus-cave.net/post/2022/06/2022-06-06-how-to-write-regexes-that-are-almost-readable/index.html Edit: also, these alternative syntaxes tend to make some easy cases easy, but they have no idea what to do with more complicated cases. Try making nested capture groups with these, for instance. It gets messy fast.
I don’t. It may look less like line noise, but it doesn’t unravel the underlying complexity of what it does. It’s just wordier without being helpful.
https://www.wumpus-cave.net/post/2022/06/2022-06-06-how-to-write-regexes-that-are-almost-readable/index.html
Edit: also, these alternative syntaxes tend to make some easy cases easy, but they have no idea what to do with more complicated cases. Try making nested capture groups with these, for instance. It gets messy fast.