Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Rebol

(network read)

Date:06/22/10
Author:Nicolas
URL:n/a
Comments:0
Info:http://re-bol.com
Score: (3.00 in 5 votes)
REBOL []

html: read http://99-bottles-of-beer.net/lyrics.html

parse html [  ;parse is a dialect of rebol
	thru "<h2>Lyrics of the song 99 Bottles of Beer</h2>" 
	copy it to "</div> <!-- main -->"
]

replace/all it"<p>" ""
replace/all it"</p>" "^/"
replace/all it"<br/>" "^/"
replace/all it"<br>" "^/"

it: trim it		;trim removes head and tail whitespace
insert find/case it "No more" "^/"		;remove abberations
remove find it " Go to the store"

print it
halt

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
1Anonymous04/20/051
Generalized song dialectGregg Irwin07/06/051
series functionsNicolas06/22/101

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: