### Documentation URL https://docs.micropython.org/en/latest/library/re.html ### Description The documentation states that non-capture groups are not supported: * non-capturing groups (``(?:...)``) But at https://github.com/micropython/micropython/blob/master/lib/re1.5/compilecode.c#L92 it looks like it is supported. ``` int capture = re[1] != '?' || re[2] != ':'; ``` And ``` import re re.match("(?:.)","1") ``` returns ``` <match num=1> ``` suggesting that it works. ### Code of Conduct Yes, I agree
Activity
agatti commentedon Mar 12, 2026
Nice find! Thanks for reporting this, I've submitted a PR that updates the documentation bits in question.
docs/library/re: Document non-capturing grouping.
docs/library/re: Document non-capturing grouping.