Strange regex error (bug?)

julia> Regex("^\\s*text")
r"^\s*text"
1 Like