Why Replace all text block not working?

Hello Everyone :smile::smiley:
How are you…

First I’m saying a sorry :smile_cat: for My Bad English :pensive:

Describing the Problem :wink:

I tried to Find YouTube Video ID from a Link…
So, I’m using Replace all block to do that…
But, It doesn’t working…

Screen Record

Aia

YouTube.aia (5.5 KB)

Blocks Image

Screen1

YouTube Screen

blocks (2)

APK

YouTube.apk (5.3 MB)

(poll removed by Taifun, please only use that community feature when neessary. Thank you)
Replying :- Okay, Thanks :blush::smile:

Because “https” also contains “http”.
Therefore it will jump to this:

Since “https://…” doesn’t contain “http://…”, it won’t replace the text.
You should check for https first before http in the if else.

1 Like

Btw, I remake your code so that it reduces the blocks. But it does the similar things: replace text and contains text.

3 Likes

Another way to find youtube id is to create a procedure like this

2 Likes

Try this and see if it works

YouTube_1.aia (5.1 KB)

1 Like

Very very Thanks @dora_paz and @WatermelonIce :smile::wink:

@WatermelonIce I selected your method because I seem its easy…

1 Like

@WatermelonIce , Please watch this video :point_down:

I wanna to “when a user enter an invalid YouTube Link…, Then, show the error message…”

So, How to do it ?

create a new topic for it.
well u shall try if then else

How can I change a post to a new topic ?