1nspire_ 0 Posted December 16, 2009 Report Share Posted December 16, 2009 How could I remove all white space in a list? What I am trying to do is take list of scraped text and remove all white space in between the words. Thanks for your help. Quote Link to post Share on other sites
1nspire_ 0 Posted December 16, 2009 Author Report Share Posted December 16, 2009 Nevermind boys and girls i figured it out. My problem was I using replace incorrectly. I also needed to create a loop for the list like you would a csv save. Now on to the next problem I will certainly run into. Quote Link to post Share on other sites
Synozeer 0 Posted January 1, 2010 Report Share Posted January 1, 2010 Can anyone give me an example of this? What I'm doing is scraping related searches from Google, but because of the way I'm doing this (grabbing it from the URL), all the spaces are plusses. I want to go through my list and replace any instance of "+" to a space. I'm not sure how to implement the $replace command as I haven't found any good examples of it. Should I be replacing the "+" while scraping/adding to list, or after the complete list is created? Quote Link to post Share on other sites
Aaron Nimocks 19 Posted January 1, 2010 Report Share Posted January 1, 2010 Attached an example. Basically you need to loop through your list and create a new list that replaces the next list item + with $nothing. The example is something for another bot but gives you an example. Quote Link to post Share on other sites
Synozeer 0 Posted January 2, 2010 Report Share Posted January 2, 2010 Thanks! That's exactly what I needed. Quote Link to post Share on other sites
satura 0 Posted January 15, 2012 Report Share Posted January 15, 2012 i need see attachment on this thread.. why always show message forbidden access is denied ..... ? Quote Link to post Share on other sites
Lombi 34 Posted January 15, 2012 Report Share Posted January 15, 2012 http://imageshack.us/photo/my-images/856/55732949.jpg/ http://img856.imageshack.us/img856/4515/55732949.jpg Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.