javascript - Regex error on Visual studio? -
i'm using url regex rfc-3986
and written here :
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
it working me here
but when add under visual studio , see : 
and chrome developer toolbar shows me :

what doing wrong ?
p.s. thought there maybe hidden chars - pasted in cmd , re-copied , still....
escape occurrences of / \/. then, vs not complain.
var basicregexpatterns = { urlpattern: /^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/i };
Comments
Post a Comment