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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -