Advanced : extract URL

The (/,c,g) it keeps printing as the columns
I used (? ) as an optional but did work.

Screen Link:

My Code:

(https?)://([\w+\-\.]+)([/?\w+\-\?\=\.]+)```

What I expected to happen:


What actually happened: 

Replace this line with the output/error


<!--Enter other details below: -->
 it print (/,c,g) in the third columns 
I tried moving the / outside the capture but it the answer was wrong.

Well, First of all, good work researching this in regex101.com that’s a great initiative :smile:

How about you try this first , and check the results??

(https?)://([\w\-\.]+)

I tried it it it take all in one column you see I want to divide the information into multiple columns
the protocol in a column and the Domain in a different column and page path in another column
total columns will be 3.

https://s3.amazonaws.com/dq-content/369/url_examples_2_updated.svg

Ok, Why don’t you give us a screenshot of your results then :slight_smile:


Edit :
Ithink what you are looking for is something like this:

(https?)://([\w\.\-]+)/?(.*)