ugakebet 4 Posted June 21, 2013 Report Share Posted June 21, 2013 Ok, this is driving me up the wall!!. I want to use regex to add list to list. That's easy. now what if I have 2 regex's and want to add a comma between them. So that in the list its appears as a csv. Then I could save this csv on my HDD etc. But the add list to list does not allow me to add in a comma? Any idea, cant use add item to list because then everything would be scraped as one item. Quote Link to post Share on other sites
stanf 43 Posted June 21, 2013 Report Share Posted June 21, 2013 If you are using the regex in a list2 list, after u collect the data add the results as tegex,regex in a ad item to list and the clear the origanal list.....but an easier way is to collect your regex data in a variable AMD the add var,var in a item to list....this way you don't have to clear the first list Quote Link to post Share on other sites
ugakebet 4 Posted June 21, 2013 Author Report Share Posted June 21, 2013 Problem with the second method is that it would be outputed in the list as 1st variable (with all the matching regex rows), second variable(with all matching rows) In other words, V1 would complete then the comma then V2. What I want is 1st element of V1, 1st element of V2. then 2nd element of V1, 2nd element of V2 etc Quote Link to post Share on other sites
stanf 43 Posted June 21, 2013 Report Share Posted June 21, 2013 Ok maybe I wasn't clear, if both list are of identical length.Set# total_times_to_run(total lost items list 1)Set( list postion) list1 = 0Set ( list position) list2=0Loop (total_times_to_run)Var1= next list position list1Var2 = next list position list2Add item to list= var1,var2Set var1= nullSet var2= nullNext ( total_times_to_run) 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.