I would like to match a string exactly (using word boundaries) against an interpolated Regex. Here’s what I have but the output looks wrong to me. Am I doing something wrong?
julia> k="t2"
"t2"
julia> r = Regex("\b$(k)\b")
rt"
julia> match(r, "t2") == nothing
true
Many thanks.