Guest User

Untitled

a guest
Feb 9th, 2018
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. e_pat = r".+@.+"
  2.  
  3. input= ["pipo@gmail.com", 23, "trapo", "holi@gmail.com"]
  4.  
  5. for i in input
  6. println(ismatch(e_pat, i)) && println(i)
  7. end
  8.  
  9. true
  10.  
  11. TypeError: non-boolean (Void) used in boolean context
  12.  
  13. Stacktrace:
  14. [1] macro expansion at ./In[27]:4 [inlined]
  15. [2] anonymous at ./<missing>:?
  16. [3] include_string(::String, ::String) at ./loading.jl:522
  17.  
  18. "pipo@gmail.com"
  19. "holi@gmail.com"
Add Comment
Please, Sign In to add comment