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.

@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

Thanks.I had fixed it.