I'm trying to write a regex that matches a url only if after '/'
there's a dot.
Here's what i've got so far: http://regexr.com/3cu85
my regex is the following: /facebook.com\/.*[.]/gm
and i'm testing with this URls:
facebook.com
facebook.com/
facebook.com/test.user
www.facebook.com
www.facebook.com/
www.facebook.com/test.user
https://www.facebook.com
https://www.facebook.com/
https://www.facebook.com/test.user
The problem is that I need to match the full url, and as you can it starts from the word "facebook".
I tried different options, but none worked for me.
Thanks for any help