Detect the Domain Name

  • + 2 comments

    When I run my Ruby solution locally on test case 3 (having paid 5 hackos for it!), I get the expected output. However, there is a runtime error when I try to submit the code online. Any suggestions?

    • Challenge Author
      + 0 comments

      Is it the same Ruby version as ours? as given on hackerrank.com/environment

      There are differences in the regex engine across some of the recent versions. Also can you PM me the code.

      thanks

    • + 0 comments

      Ah, I downloaded Ruby 2.0.0p451. I'll try again on 1.9.3 and see what needs fixing. Thanks!