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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -