This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Description
I get an error message when my code include a regular expression.
Here an example:
input = "4457418557635128"
visa = r"^(?:4[0-9]{12}(?:[0-9]{3})?)$"
if occursin(visa, input)
println("credit card found")
m = match(visa, input)
println(m.match)
println(m.offset)
println(m.offsets)
end
I get this error message
: MethodError(convert, (Type, nothing), 0x0000000000006a26)
does anybody know how to fix it?