Regex w/ String Interpolation

a = "focus"
r = Regex("$(a)\\s*:\\s*true")
ismatch(r, "# focus: true")
14 Likes