Guest User

Untitled

a guest
Dec 26th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. f.each do |l|
  2. l.chomp!
  3.  
  4. if l =~ /username/
  5. username = l.match(/^\s*username\s*=\s*(\w+)\s*/)
  6. elsif l =~ /password/
  7. password = l.match(/^\s*password\s*=\s*(\w+)\s*$/)
  8. end
  9.  
  10. end
Add Comment
Please, Sign In to add comment