Thank you. That works. Could you explain to me what was wrong with my code? It
seems that the important part is the
var matches: array[1, string]
Run
Why is
var matches: seq[string]
Run
wrong? I thought that's a list of strings that can be
With some fixes:
import re, strutils
let buf = """
START
{
"start_h":10,
"start_m":40,
"end_h":11,
"end_m":40,
"delta_h":0,
"delta_m":0,
"project_ID":0
}
END
"""
var
dataBuf: string = ""
Hello,
I hope it won't be a garbage post, because I'm missing something super simple...
I'm sending a Json from a Python script to a server written in Nim. The Json
data is between `START` and `END` strings.
if "START" in buf:
buildingRecord = true
if