Yagami 1 Posted November 24, 2017 Report Share Posted November 24, 2017 Hi, I had to apply a regular expression to modify my list and the only way I found to do this is to create a temp list that will contain my initial information and then use an add list to list to apply the regex. add list to list(%column212,$plugin function("HeopasCustom.dll", "$Heopas Xpath Parser", $plugin function("HeopasCustom.dll", "$Heopas Text Encode/Decode", "HTML Decode", %followers), "//div[@class=\'_st _ss _sw _sk _5j _sm _sq _no _np _nq _nr\']", "InnerText", ""),"Don\'t Delete","Global") add list to list(%column2,$find regular expression(%column212,"\\d+(\\.)?(\\d+)?k?(?=\\s*followers)"),"Don\'t Delete","Global") Is there a better way to to modify a list without having to create others? Thank you Quote Link to post Share on other sites
HelloInsomnia 1103 Posted November 26, 2017 Report Share Posted November 26, 2017 You should be able to nest the functions even more, like this: add list to list(%column2,$find regular expression($plugin function("HeopasCustom.dll", "$Heopas Xpath Parser", $plugin function("HeopasCustom.dll", "$Heopas Text Encode/Decode", "HTML Decode", %followers), "//div[@class=\'_st _ss _sw _sk _5j _sm _sq _no _np _nq _nr\']", "InnerText", ""),"\\d+(\\.)?(\\d+)?k?(?=\\s*followers)"),"Don\'t Delete","Global") 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.