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.

  1. the first , last / regex delimiters.
  2. the ^ matches beginning of string.
  3. the \/ escapes / match /.
  4. the node matches exact string node.

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -