this post was submitted on 02 Dec 2024
22 points (100.0% liked)
Nix / NixOS
1831 readers
1 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Nix regex sucks. Is there any package with a reasonable regex matchAll?
@F04118F if it’s for todays advent of code, I used split and it worked fine. See my live steam on YouTube or my GitHub .
Somehow I completely missed that split can do match groups.. Oopsie! I did it in Python today but I did make a completely functional (and way too complicated) algorithm.
Tap for spoiler
The way you handle the do and dont is much cleaner.
@F04118F if i had known about match i probably would have gotten stuck also lol but luckily i used split once before and remembered it :) i made an issue in your github, hope thats ok, just to mention this in case you didnt see it on fedi!
Yeah I was planning on changing the salty README and referencing your comment, thanks for putting the reminder there!