Skip to content

Instantly share code, notes, and snippets.

@dblooman
Created February 13, 2014 17:14
Show Gist options
  • Select an option

  • Save dblooman/8979441 to your computer and use it in GitHub Desktop.

Select an option

Save dblooman/8979441 to your computer and use it in GitHub Desktop.
links = arr.each do |l|
news = l.scan(/^\/news(?:|.+)?$/)
puts news
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment