mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
12 lines
173 B
Nim
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]
|