SmileyBot 13 Posted May 26, 2016 Report Share Posted May 26, 2016 Hey guys I'm having trouble with removing spaces from a scraped list of names from a page add list to list(%account names,$scrape attribute(<class="Title__usernameText">,"innertext"),"Delete","Global") The above code gives me a list like this: John SmithPaul GreenZoe Dog but I need it like this: JohnSmithPaulGreenZoeDog thanks in advance Quote Link to post Share on other sites
HelloInsomnia 1103 Posted May 26, 2016 Report Share Posted May 26, 2016 Try this: add list to list(%account names,$list from text($replace($scrape attribute(<class="Title__usernameText">,"innertext")," ",$nothing),$new line),"Delete","Global") It uses the $replace function and you can just put a space in there for what you want to replace, more here: http://wiki.ubotstudio.com/wiki/Replace Quote Link to post Share on other sites
SmileyBot 13 Posted May 26, 2016 Author Report Share Posted May 26, 2016 Thanks heaps, I was trying to regex, you made it simple. cheers 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.