Good day! Is there anywhere I can read about limitations on Hare's standard regex implementation, besides the docs and the blog post about it? I want to check wherever using multiple alterations is allowed. My program aborts when I test again the regex "(a|b|c)", with the following error: Abort: /usr/src/hare/stdlib/regex/regex.ha:502:4: slice or array access out of bounds And compiling a regex from "a|b|c" returns this error description: Encountered ")" token without matching "(" I couldn't find anything about several alterations in a row in the POSIX spec linked in the blog. It seems that Hare's regex does not support it, but I just wanted to double check in case I am doing something wrong.
You can take a look at https://todo.sr.ht/~sircmpwn/hare?search=regex Particularly, at #696.
Hi, sorry, this is something that I never got around to implementing. It should be relatively easy, so if you, or anyone else, is looking for a quick thing to add to regex::, this would be a good candidate. I'm always available to help in #hare if you have any questions. Otherwise, just wait and I or someone else will do it eventually.
Regex is an interesting topic! I'll try to contribute it once I get better at the language.