How do I cut a certain amount of parts from a link?

I want to cut the domain from a link. For example Welcome to the Community! from this link only https://community.kodular.io I will cut this piece. How do I do it?

Use block spit.

Split at /

Index 1,2,3 is result

Or, after split
join https://
Joint index 3

can you please make a example block for me?

Ok… wait…

1 Like


You can use either oF the block. For more info please refer this.

1 Like

@M4RK_C0D3R

Can you please explain the index block. Why 3?

Count the /… You want to avoid the text after the third / so he used 3. Try to replace with 1 and 2 and see what is happening. You will get ideas

1 Like

oke got it. Thank you.

1 Like

what’s wrong here? Why not working?

it also not working.

Android version ?

android version 11.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.