diff --git a/base/regex.jl b/base/regex.jl index af5d63f038184..fec296215902a 100644 --- a/base/regex.jl +++ b/base/regex.jl @@ -22,6 +22,8 @@ Regex(p::String, s::Bool) = Regex(p, 0, s) Regex(p::String, o::Integer) = Regex(p, o, false) Regex(p::String) = Regex(p, 0, false) +copy(r::Regex) = r + # TODO: make sure thing are escaped in a way PCRE # likes so that Julia all the Julia string quoting # constructs are correctly handled.