Dataquest pattern VS regex tester

Screen Link:

My Code:

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

Why this pattern did not work if used on https://regex101.com/ ???

Many thanks

Because I was working on PHP flavor mode… :sweat_smile: