What I expected to happen:
If i use the above code for the url
then is should return thew whole url
because the syntax include
. means any char except newline, tab etc … and this include
? also then
([\w\-\.]+) should return the whole url
www.valid.ly?param till params.
What actually happened:
Why it stops before
? and doesn’t read further?