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 : enter image description here

and chrome developer toolbar shows me :

enter image description here

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 }; 

see escaping forward slash in regular expression.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -