Files
Nim/tests/stdlib/tbug5382.nim
Anatoly Galiulin 279e4b0451 Fixes #5382
2017-02-13 13:35:40 +01:00

12 lines
173 B
Nim

discard """
output: '''
02
'''
"""
import re
let regexp = re"^\/([0-9]{2})\.html$"
var matches: array[1, string]
discard "/02.html".find(regexp, matches)
echo matches[0]