Jump to content



Photo

Working With Lists (Clean Text, Trim Or Other Functions)

Ubot Lists Regex

  • Please log in to reply
3 replies to this topic

#1 OmniRed

OmniRed

    Newbie

  • Members
  • Pip
  • 3 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 08 April 2019 - 08:46 AM

Picture for reference - 

 

https://ibb.co/4dMDrnB

 

I'm working on a project that involves a lot of lists - Something I don't have a lot of experience with at this point. I'm trying to clean up the lists in the picture, but I'm unsure how to string together the correct commands to accomplish this. 

 

I'm assuming that $Trim or $Clean Text would work, or possibly REGEX, but I have a few questions.

 

How would you use the $Trim command on a list? Or do you have to set up a loop using the $next list item and $trim each item in the loop? Is there a best practice for cleaning up lists?

 

Thanks for your help!



#2 pash

pash

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3364 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 08 April 2019 - 09:18 AM

no direct $trim command for list.

1. loop list and $trim each item

2. 

add list to list(%Test,$list from text($replace regular expression("Adriana C. Ocampo UriaAlbert Einstein
Anna K. Behrensmeyer
Blaise Pascal

Caroline Herschel

Cecilia Payne-Gaposchkin","\\n\\n","
"),$new line),"Delete","Global")

3. use plugin.


New Plugin:: Advanced Facebook | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint
- Advanced Data Text File | Advanced DateTime | Advanced Dialog | Advanced Document | Advanced Google Blogger V3 | Advanced Google Drive | Advanced Google YouTube V3 | Advanced Image | Advanced Video | Advanced Screen and Windows | Advanced Systems | Advanced Ubot 1 | Advanced Ubot 2 | Advanced WordPress | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint

- Advanced Captcha (V3) | Advanced Captcha (V2) (Old) | Create Table From Excel (Lite) | Check Conection | Ubot Enter License | Auto Free Memory
- Working hours GMT+7. i regret sometimes the answer is delayed due to health problems.


#3 OmniRed

OmniRed

    Newbie

  • Members
  • Pip
  • 3 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 08 April 2019 - 09:45 AM

Pash - Which plugin are you referring to?



#4 pash

pash

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3364 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 08 April 2019 - 08:58 PM

Pash - Which plugin are you referring to?

 

not sure other this in plugin "Advanced Data Text File"

add list to list(%Test,$find regular expression("Adriana C. Ocampo UriaAlbert Einstein
Anna K. Behrensmeyer
Blaise Pascal

Caroline Herschel

Cecilia Payne-Gaposchkin",".*?\\n"),"Don\'t Delete","Global")
plugin command("Advanced Data Text File.dll", "list remove empty", %Test)

New Plugin:: Advanced Facebook | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint
- Advanced Data Text File | Advanced DateTime | Advanced Dialog | Advanced Document | Advanced Google Blogger V3 | Advanced Google Drive | Advanced Google YouTube V3 | Advanced Image | Advanced Video | Advanced Screen and Windows | Advanced Systems | Advanced Ubot 1 | Advanced Ubot 2 | Advanced WordPress | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint

- Advanced Captcha (V3) | Advanced Captcha (V2) (Old) | Create Table From Excel (Lite) | Check Conection | Ubot Enter License | Auto Free Memory
- Working hours GMT+7. i regret sometimes the answer is delayed due to health problems.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users