While reading a book about Programming Languages, I saw the following highlighted paragraph:
Default values, optional segments, and catchall segments all increase the range of URLs that a route will match. Constraints have the opposite effect and restrict matches. This can be useful if an endpoint can deal only with specific segment contents or if you want to differentiate matching closely related URLs for different endpoints. Constraints are applied by a colon (the : character) and a constraint type after a segment variable name
So I got a little confused when facing the highlighted part above and want to know whether that part is able to be rewritten as follow:
to differentiate in matching closely related URLs
Otherwise, could any one explain the role of words came in the highlighted part above?(for example the word matching is an adjective and ...)