denrich 4 Posted February 12, 2015 Report Share Posted February 12, 2015 Hi uboters I need help in removing extra lines and extra spaces from a scrape, I have tried different Regex codes without success, seems simple but I can't get around it, any help will be appreciated. set(#va1, $list from text(" 2012 Kia Rio LX - FULL WARRANTY UNTIL 2021!!! 2013 Chevrolet Malibu LS 2011 Chevrolet Impala LS 2011 Nissan Altima 2.5 S 2011 Buick Enclave CXL", ""), "Global")set(#va2, $replace regular expression(#va1, "\\n\\n", "\\n"), "Global")load html(#va2) Quote Link to post Share on other sites
Edward_2 85 Posted February 13, 2015 Report Share Posted February 13, 2015 This removes blank lines %[^t ]++[^r^n]+ heres the source http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/remove_blank_lines.html 1 Quote Link to post Share on other sites
denrich 4 Posted February 18, 2015 Author Report Share Posted February 18, 2015 Thanks Edward_2, I have used this simple method here, it did the trick. set(#var, $replace(#var, "", ""), "Global") Quote Link to post Share on other sites
deliter 203 Posted February 28, 2015 Report Share Posted February 28, 2015 I would suggest to learn the advice Edward_2 gave,I myself dont have regex half even a fifth as complicated as his,I just nest nodes together making each one a bit smaller until complete lol,but for getting your bot to make decisions ie AI, expressions are the way to go 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.