Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Extracting emails
- r = Regexp.new(/\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b/)
- addrs = <some text>.scan(r)
- # Extract IPs
- ips = entr.scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
Advertisement
Add Comment
Please, Sign In to add comment