import org.jfugue.*
def munge(s) {
s.findAll { it ==~ /[A-Ga-g]/ }.join(' ')
}
String.metaClass.play = { new Player().play(new Pattern(munge(delegate.toString()))) }
"http://www.google.com".toURL().getText().play()
All credits go to transentia
1 Kommentar:
Kommentar veröffentlichen