vendeta30 4 Posted March 16, 2020 Report Share Posted March 16, 2020 Hi . It turns out that I have a txt that contains a list of emails and passwords separated by ( example: dadaffsggd@gmail.com: 415423 gjfhhfnddbb@gmail.com: 823361 gagaggsvv@hotmail.ar: 784232 What I want to obtain is to separate two variables from that list, one with the mail and the other with the password. #mail = dadaffsggd@gmail.com # password = 415423 The list is quite large. I hope your help Quote Link to post Share on other sites
tinku 6 Posted March 16, 2020 Report Share Posted March 16, 2020 you can proceed like that:-add list to list(%test,$list from text("dadaffsggd@gmail.com: 415423gjfhhfnddbb@gmail.com: 823361gagaggsvv@hotmail.ar: 784232",":"),"Delete","Global") Quote Link to post Share on other sites
vendeta30 4 Posted March 16, 2020 Author Report Share Posted March 16, 2020 you can proceed like that:-add list to list(%test,$list from text("dadaffsggd@gmail.com: 415423gjfhhfnddbb@gmail.com: 823361gagaggsvv@hotmail.ar: 784232",":"),"Delete","Global") What i'm looking for is to separate in two different variables the mail and password Quote Link to post Share on other sites
bestmacros 60 Posted March 16, 2020 Report Share Posted March 16, 2020 here is code example set(#email and password,"dadaffsggd@gmail.com: 415423","Global")clear list(%temp)add list to list(%temp,$list from text(#email and password,": "),"Delete","Global")set(#email,$list item(%temp,0),"Global")set(#password,$list item(%temp,1),"Global") 1 Quote Link to post Share on other sites
vendeta30 4 Posted March 16, 2020 Author Report Share Posted March 16, 2020 here is code example set(#email and password,"dadaffsggd@gmail.com: 415423","Global")clear list(%temp)add list to list(%temp,$list from text(#email and password,": "),"Delete","Global")set(#email,$list item(%temp,0),"Global")set(#password,$list item(%temp,1),"Global")Thank you for the data Quote Link to post Share on other sites
vendeta30 4 Posted March 16, 2020 Author Report Share Posted March 16, 2020 (edited) here is code example set(#email and password,"dadaffsggd@gmail.com: 415423","Global")clear list(%temp)add list to list(%temp,$list from text(#email and password,": "),"Delete","Global")set(#email,$list item(%temp,0),"Global")set(#password,$list item(%temp,1),"Global") If the email and the password do not have a separation after the 2 points the code does not work you can verify it with this example. set(#email and password,"dadaffsggd@gmail.com:415423","Global") clear list(%temp) add list to list(%temp,$list from text(#email and password,": "),"Delete","Global") set(#email,$list item(%temp,0),"Global") set(#password,$list item(%temp,1),"Global") Edited March 16, 2020 by vendeta30 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.