296
Views
5
Comments
Solved
Multiple patterns in regex_search
Question

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")
ReqexSearch.PNG
2025-10-15 13-52-14
Maurice Staal
Solution

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

2020-09-01 10-42-42
Stefano Valente

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.

2018-06-05 16-54-03
Maria da Graça Peixoto

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

    

2025-10-15 13-52-14
Maurice Staal

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?

2018-06-05 16-54-03
Maria da Graça Peixoto
2025-10-15 13-52-14
Maurice Staal
Solution

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.