Guest User

Untitled

a guest
May 26th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. samples = ["-able", "chicken", "d'oh", "coo-coo", "!!!", "!fry", "2legit", "wangy", "bud_bud"]
  2.  
  3. samples.each do |sample|
  4. puts "#{sample}: #{sample =~ /^[\w|\'\-]+$/}"
  5. end
Add Comment
Please, Sign In to add comment