I need help processing text strings

Learn2023

Пользователь
Регистрация
18.03.2023
Сообщения
40
Благодарностей
1
Баллы
8
I collected this text string on zenno poster, now I want to put this string like this, what should I do?

here is the text string after getting from zenno poster
" 1 tonight

2 plugs

3 rate

4 ridges

5 music

6 evolve

7 medals

8 recycle

9 escapes

10 planets

11 positions

12 employ "

this is the type of text i want to process

tonight plug rate ridge music evolve medal recycle escape planet position employ

help me please. I spent all day testing but it didn't work
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 184
Баллы
113
Hi, You can use action Data ==> Text processing and Regex. Use this regex \ (\w+) and regex in list.
Now your list will contain only words. Then you can use List Processing action and Merge List items.
This will join all words from lost into one variable and you will have your needed format of words.
 
  • Спасибо
Реакции: mta

mta

Client
Регистрация
12.01.2020
Сообщения
129
Благодарностей
7
Баллы
18
Hi, You can use action Data ==> Text processing and Regex. Use this regex \ (\w+) and regex in list.
Now your list will contain only words. Then you can use List Processing action and Merge List items.
This will join all words from lost into one variable and you will have your needed format of words.
hi lokiys !!
how to use a regex in a list ?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 184
Баллы
113
  • Спасибо
Реакции: mta

Learn2023

Пользователь
Регистрация
18.03.2023
Сообщения
40
Благодарностей
1
Баллы
8
[ { "domain": "some.host.io", "expirationDate": -1.0, "httpOnly": true, "name": "cookie-name-1", "path": "/", "sameSite": "strict", "secure": true, "value": "cookie-value-1", }, { "domain": "some.host.io", "expirationDate": 1672520400.0, "httpOnly": true, "name": "cookie-name-2", "path": "/", "sameSite": "Unspecified", "secure": true, "value": "cookie-value-2", }, { "domain": "some.host.io", "expirationDate": 1704056400.0, "httpOnly": false, "name": "cookie-name-3", "path": "/", "sameSite": "Unspecified", "secure": true, "value": "cookie-value-3", } ]

this is the JSON cookie data format.
I want to bring all to 1 line but still keep the text, how to do?
please help me

@lokiys can you help me ? tks very much
 

Learn2023

Пользователь
Регистрация
18.03.2023
Сообщения
40
Благодарностей
1
Баллы
8
110541


data JSON cookies like this @lokiys
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 184
Баллы
113

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