diff --git a/base/regex.jl b/base/regex.jl index 00234ade2fe1a8..81f83891d3175f 100644 --- a/base/regex.jl +++ b/base/regex.jl @@ -534,8 +534,8 @@ meaning that the contained characters are devoid of any special meaning # Examples ```jldoctest -julia> r"Hello|Good bye" * ' ' * "world" -r"(?:Hello|Good bye) world" +julia> match(r"Hello|Good bye" * ' ' * "world", "Hello world") +RegexMatch("Hello world") julia> r = r"a|b" * "c|d" r"(?:a|b)\\Qc|d\\E"