nim-regex
nim-regex copied to clipboard
Inject named groups as vars into match macro scope
ex:
match "1-2 c abc", rex"(?P<a>\d+)-(?P<b>\d+) (?P<c>\w): (?P<pwd>\w*)":
doAssert a == "1"
doAssert b == "2"
doAssert c == "c"
doAssert pwd == "abc"