namstery 3 Posted December 8, 2017 Report Share Posted December 8, 2017 I created some table from web page..But it has unwanted string in it like " ab aa asdadsasasd aaa aa" How can I delete new line and just make like this"ab aa asdadsasasdaaaaa"? I bought almost paid plugin of ubotstudio, so if you let me know just lines for that, I'll appreciates. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted December 8, 2017 Report Share Posted December 8, 2017 Hi, here is how to do it with out any Regex. set(#text," ab aa asdads asasd aaa aa","Global") alert($Remove blanks(#text)) define $Remove blanks(#TEXT) { clear list(%F_text) clear list(%F_cleaned text) add list to list(%F_text,$list from text(#TEXT,$new line),"Delete","Global") loop($list total(%text)) { set(#F_text NLI,$next list item(%text),"Global") if($comparison(#F_text NLI,"!= Does not equal",$nothing)) { then { add item to list(%F_cleaned text,#F_text NLI,"Don\'t Delete","Global") } } } return(%F_cleaned text) } Regards,CD 1 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.