regex - What does the following regular expression match for? -
for sample url's following req.url.match(/^\/node\// match?
i couldn't find expression in http://www.w3schools.com/jsref/jsref_obj_regexp.asp , other resources following so, had put community.
it matches string /node/, must @ beginning of string.
- the first , last
/regex delimiters. - the
^matches beginning of string. - the
\/escapes/match/. - the
nodematches exact stringnode.
Comments
Post a Comment