Are there any other available options, preferably something small without external dependencies?
If not, I'm considering porting the Lua string pattern matching code [1] to Nim; it's pretty concise (approx 500 LOC), and handles about 99% of the matching/capturing cases I usually need in real life.
Semi-related to this discussion:
I just added Nim to the "Languages" section of Wikipedia's [[Comparison of regular expression engines]]. Someone more knowledgeable may wish to review and complete the "Language features" section there.
That WP article is also interesting for its "Libraries" section on top, listing some permissively licensed PCRE alternatives around which Nim wrappers could be created. Oniguruma seems to be the leading contender.