Why 'find' works and '=~' doesn't work here?
import re
let line = "garbage: 2018/01/01"
if line.find(re"\d{4}\/\d{2}\/\d{2}") > -1:
echo "find ", line
if line =~ re"\d{4}\/\d{2}\/\d{2}":
echo "template ", line
Thank you, worked)
if line =~ re".*\d{4}\/\d{2}\/\d{2}":