Jump to content
UBot Underground

Recommended Posts

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)

Link to post
Share on other sites
  • 2 weeks later...

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...