Url parser in Javascript with Regular Expressions

Hello everyone!! I would be more than grateful If u could tell me how can I build a Url parser
(using Regex) that opens the urls in new tab. I came up with this regular expression ((([A-Za-z]{3,9}:(?://)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:/[+~%/.\w-]*)???(?:[-+=&;%@.\w])#?(?:[\w]))?) but I cannot understand how I can use it in my function.
Your would be invaluable !!:slight_smile:

Why reinvent the wheel?

You can do that with window.open once you have extracted the desired URLs.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.