this post was submitted on 01 Dec 2023
18 points (100.0% liked)
NotAwfulTech
384 readers
1 users here now
a community for posting cool tech news you don’t want to sneer at
non-awfulness of tech is not required or else we wouldn’t have any posts
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
day 1
part 1
perl
part 2
perl
Part 2 gave me a surprising amount of trouble. I resolved it by looking at longer and longer substrings from the end of the line in order to find the very last word even if it overlapped, which you can't do with normal regex split. I doubt this is the most efficient possible solution.
Also Lemmy is eating my < characters inside code blocks, which seems wrong. Pretend the "<>" part says "<>", lol
lemme is an incredibly hungry little shit, it eats so much
day 2
perl
Found this much easier than day 1 honestly...