Coder007
(S.H)
September 4, 2019, 10:40am
#1
This is a list
[email protected] @The sky is blue.SLINK##17773202PDATA ??2KTkb69/[email protected]
[email protected] is a good boy.SLINK#17773127PDATA?cg0fYrp/[email protected]
[email protected] you know her?SLINK#17772963PDATA?y5mxd83/[email protected]
Special identifier
[email protected] ----------------- SLINK# ----------- PDATA? ------------- [email protected]
What I want to do?
I want to extract three data (sentence in between those identifier) and create a list or three different list.
This what I have done so far…But is there any way to simplify it?
Taifun
September 4, 2019, 11:26am
#2
replace [email protected] by empty string
replace [email protected] by empty string
replace SLINK# by PDATA?
then split remaining text by PDATA? to get a list of the 3 items you are looking for
Taifun
1 Like
Coder007
(S.H)
September 4, 2019, 11:35am
#3
Should I have to use the for each item in list block
?
Mika
September 4, 2019, 11:40am
#4
Try this to simplify your current blocks.
EDIT:
If you just want to get a specific range of a text then you should use this:
4 Likes
Coder007
(S.H)
September 4, 2019, 12:01pm
#5
Yeah…It’s good to use the procedure block…And obviously this block will decrease the number of blocks but what do you think about this one
Taifun
September 4, 2019, 12:20pm
#6
What about trying the suggestions?
You can make your own private kode jam.
Taifun
4 Likes
Coder007
(S.H)
September 4, 2019, 12:33pm
#7
Mika’s one is good to reduce the blocks count but I am trying to understand yours one so…
Suppose the list item looks like this (Suppose there are 50 items in the list)
The sky is blue.SLINK#17773202PDATA?2KTkb69/apppicture-1.jpg
Special identifier
SLINK# ------ PDATA?
Is this possible to split the list from SLINK# and PDATA? to get those three part of the data…
I mean
1st list -->> The sky is blue
2nd list --->> 17773202
3rd list --->> 2KTkb69/apppicture-1.jpg
Taifun
September 4, 2019, 4:56pm
#8
So how is your private kode jam going?
Any screenshot of your blocks?
My suggestion will result in one large list…
Another possibility is to create a csv table, assuming there are no commas in your texts…
replace SLINK# by ,
replace PDATA? by ,
replace [email protected] by \n
Now you have a csv table
use the list from csv table block to convert the csv table into a list of lists
Taifun
1 Like