Created
June 25, 2017 06:21
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.learningred.com/news/2014/02/parse-challenge-3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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