Why is my code not working

Here is my code that I want to work


and the second one is all the code

This blocks snippet works for me

The regex may require a fully qualified url - e.g. https://google.com