I’m trying the code in the Regex section, but I am getting an error. Anyone know what I am doing wrong?
julia> m = match(r"(a|b)(c)?(d)", "ad")
RegexMatch("ad", 1="a", 2=nothing, 3="d")
julia> first, second, third = m; first
ERROR: MethodError: no method matching iterate(::RegexMatch)
Closest candidates are:
iterate(::Union{LinRange, StepRangeLen}) at range.jl:664
iterate(::Union{LinRange, StepRangeLen}, ::Int64) at range.jl:664
iterate(::T) where T<:Union{Base.KeySet{var"#s77", var"#s76"} where {var"#s77", var"#s76"<:Dict}, Base.ValueIterator{var"#s75"} where var"#s75"<:Dict} at dict.jl:693
...
Stacktrace:
[1] indexed_iterate(I::RegexMatch, i::Int64)
@ Base ./tuple.jl:89
[2] top-level scope
@ REPL[29]:1
julia>
Also, as an aside, where do I file a bug for a typo in the docs?
As a convinience
should be, of course, convenience