Skip to content

Instantly share code, notes, and snippets.

@eranws
Created June 25, 2017 06:21
Show Gist options
  • Save eranws/e705cac3e5ea0f5f876a9eca228acd42 to your computer and use it in GitHub Desktop.
Save eranws/e705cac3e5ea0f5f876a9eca228acd42 to your computer and use it in GitHub Desktop.
my answer to parsing title of html page from url: http://www.learningred.com/news/2014/02/parse-challenge-3
http://www.learningred.com/news/2014/02/parse-challenge-3
Red []
url: http://www.red-lang.org
html: read url
tags: [
some [
[
"<title>"
copy value
to "</title>"
break
]
| skip
]
]
parse html tags
probe value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment