Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- e_pat = r".+@.+"
- input= ["pipo@gmail.com", 23, "trapo", "holi@gmail.com"]
- for i in input
- println(ismatch(e_pat, i)) && println(i)
- end
- true
- TypeError: non-boolean (Void) used in boolean context
- Stacktrace:
- [1] macro expansion at ./In[27]:4 [inlined]
- [2] anonymous at ./<missing>:?
- [3] include_string(::String, ::String) at ./loading.jl:522
- "pipo@gmail.com"
- "holi@gmail.com"
Add Comment
Please, Sign In to add comment