javascript - ExpressJS: What's the difference between ?, +, * in string patterns and regexes? -


hi i'm new express , although have scoured internet complete explanation of string patterns haven't found any. documentation path-to-regexp doesn't seem help, either.

specifically, i'm trying interpret (imo rather cryptic) remark in documentation:

the characters ?, +, *, , () subsets of regular expression counterparts.

see http://expressjs.com/guide/routing.html

how differently these characters behave between regexes , string patterns? know of complete list of characters deemed special in express strings, explanations supposed do?

cheers

from examples looks + , ? behave you'd expect in regexes, , * equivalent regex .*. that's string patterns - actual regex ones further down behave you'd expect.


Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -