🧱
throwing bricks at people
i have way too much time in my hands.
-
02:53
(UTC +08:00) - @quackbarc
- @quackbarc.bsky.social
Pinned Loading
-
a fizzbuzz pattern made with pure regex
a fizzbuzz pattern made with pure regex 1```regex
2\b(?:(?<fizzbuzz>(?:(?:[369]|[258][0369]*[147]|(?:[147]|[258][0369]*[258])(?:[0369]|[147][0369]*[258])*(?:[28]|[147][0369]*[147]))*(?:0|(?:[147]|[258][0369]*[258])(?:[0369]|[147][0369]*[258])*5))+)|(?<buzz>\d*[05])|(?<fizz>(?:[0369]|[258][0369]*[147]|(?:[147]|[258][0369]*[258])(?:[0369]|[147][0369]*[258])*(?:[258]|[147][0369]*[147]))+))\b
3```
4insanity, as i'd like to call it. although it isn't fizzbuzz per se, it's the best you can get with regex. here's a [regexr link](https://regexr.com/6aaio) to it with sample text.
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.