I'm using this url regex from the RFC-3986
And it is written here :
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
It is working for me here
But when I add it under visual studio , I see this : 
And chrome developer toolbar shows me this :

What am I doing wrong ?
p.s. I thought that there are maybe hidden chars - so I pasted in CMD and then re-copied it , but still....
 
     
    