Comparing 2 lists

Daikaiser

Client
Регистрация
06.09.2011
Сообщения
68
Благодарностей
9
Баллы
8
Hi, anyone knows if there is a way copy the elements from one list only if they appear on another one? For example, in list A the words test2, test5, test10 appear, and in list B the words test1, test2, test10, test 11 appear. I want to copy only the words that appear in both list A and list B. Is this too complex to achieve? Thanks.
 

Daikaiser

Client
Регистрация
06.09.2011
Сообщения
68
Благодарностей
9
Баллы
8
I think I found a way to do this by using the replace and regex function. For example, I will replace the word test2 to **test2++ ,and then make a regex to find anything between the ** and ++
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
You don't have to replace to do that. You will need to merge the list you are comparing to first, then just pull a line from the other list and regex with the result. In regex, you can just use test2 as the regex and it will find any line in the other list that contains test2
 
  • Спасибо
Реакции: Daikaiser

Daikaiser

Client
Регистрация
06.09.2011
Сообщения
68
Благодарностей
9
Баллы
8
It is a lot easier to do it in that way, thanks Bigcajones!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)