Created
October 30, 2017 02:30
-
-
Save optik-aper/67419f071a026107879b0d54b07f8f8a to your computer and use it in GitHub Desktop.
Difficulties with nre proc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code adapted from the captures tests | |
# nim/tests/stdlib/nre/captures.nim | |
import nre | |
echo("abc".match(re"(?<letter>\w)").captures["letter"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler output: