From: Juo Hundred Date: 2009-06-18T08:50:31+09:00 Subject: Deleted unwanted characters from a string Hi :) Im trying to write a script that can check if Rapidshare links are online, ive managed to get the content of [code] tags from my website using scrubyt [code] http://rapidshare.com/files/example/example.rar [/code] Im trying to strip the string of anything but the "http://rapidshare.com/files/example/example.rar" part, so I can work with it. I tried to use the .delete function however it doesn’t work. [code]require 'rubygems' require 'scrubyt' data = Scrubyt::Extractor.define do fetch 'http://www.mywebsite.com/index.php?action=login' fill_textfield 'user', 'myusername' fill_textfield 'passwrd', 'mypassword' submit fetch 'http://mywebsite/index.php?topic=672' link '//div/code' end rapidshare = data.to_xml.write($stdout, 1) rapidshare.to_s rapidshare.delete "" print rapidshare [/code] Any help would be great appreciated :) is my full code -- Posted via http://www.ruby-forum.com/.