@profoundlynerdy I think the main points are:
a) splitting out the two cases of with and without commas, so you can think about one at a time rather than coming up with one monster regexp (which is the whole benefit of grammars) and
b) matching the comma before a fixed group of 3, rather than as an option after a variable-length group.
Would be interested to see other solutions though!
=> More informations about this toot | View the thread | More toots from clarkema@mastodon.social
=> View profoundlynerdy@bitbang.social profile
text/gemini
This content has been proxied by September (3851b).