Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def domain_name(url)
- answer = url.match /\w{4,}/
- return answer
- end
- Test.assert_equals("tamarawobben", domain_name("www.tamarawobben.nl"))
- Test::Error: Expected: #, instead got: "tamarawobben"
Advertisement
Add Comment
Please, Sign In to add comment