fork download
  1. #!/usr/bin/ruby -w
  2.  
  3. def url_protocol?
  4. r=/^\w{3,5}:\/\//
  5. (self.match r)
  6. end
  7.  
  8.  
  9. puts "http://w...content-available-to-author-only...u.pl".url_protocol?
  10. puts "ala ma kota".url_protocol?
Runtime error #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
Standard output is empty