I'm using this script to filter for email addresses to include in our blacklist: http://pastebin.com/KPcV75gM . However, after running uniq! on the matches array, the output still shows duplicate values. Any suggestions?
hello, is there really no built-in way to check which platform the ruby script is running in? the stackoverflow suggested answers point to either a Config module, an RbConfig module, and a 3rd-party module called 'os'
Hello! Does Ruby recognize lines ending in CRLF? I tried doing a file.read.split("\r\n") but it won't produce the output I wanted
oh, one other thing: in Python they have a method called "parseaddr" that allows splitting an email address that's stated like "FirstName LastName <firstname.lastname@example.org>" into "FirstName LastName" and "email@example.com"