Regex extract url not work in bubble

Hi.
I tried to use regex to extract url like this:
(https?://(?:www.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9].[^\s]{2,}|www.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9].[^\s]{2,}|https?://(?:www.|(?!www))[a-zA-Z0-9]+.[^\s]{2,}|www.[a-zA-Z0-9]+.[^\s]{2,})

It works in regex101 but not work in bubble.
Could someone figure it out?


Not sure if you need “/gm” in the regex code.

1 Like

@artpnp01 I tried the following regular expression which extracts the complete website URL…

%\b(?:https?://)?(?:(?i:[a-z]+\.)+)[^\s,]+\b%g

Here is the example

1 Like

Thanks.I had fixed it.

This topic was automatically closed after 70 days. New replies are no longer allowed.