I have a problem with validating group 2 which is the (sub)domain and extension.
My regex: /^(http:[\/]{2})([\w\d\-\_\.]+)(\/(?:[\/\w\W]+)?)?$/
Issue on: ([\w\d\-\_\.]+)
Issue: http://www.....google....com/stuff is valid, I tried doing [\w\d\-\_][(?<!\.)\.(?!\.)]+ but alas it doesn't work.
How can I make it so that if there's a . behind or a . in front of a . that the regex will return false.