Multiple patterns in regex_search

hello,

I want to filter https and http from a link. Higest unfortuntely it is seen as one word. But I need to have it splitted.

How to get it as separate patterns filtered?

I use:

SyntaxEditor Code Snippet

("http:https")

Not quite sure what you want.

https://regex101.com/

I always use when i need regex. 

If you need easy split, you could skip regex and use string_split function.

Hi! 

Try separate the work in two:

 1. start by "https" 

 2.  treat and remove the "https" URL or URLs found

3. then filter the "http" 

Regards

Graça

    

Thanks for your help, but this is not completely what I ment. 

I just want to check if in url has "http" OR "https". If not, I give a feedback message back.

So, in the regex_search server action I want to check if it match with "http"OR "https". 

Now I tried this: but it took everything with a single character: 

SyntaxEditor Code Snippet

"(https|http)"


What is the right patter to check for both words?

Solution

Thanks for the answers, we tried it with "(^https|^http)" and it worked

Solution