# Matching algorithm issue

**URL:** <https://community.postman.com/t/matching-algorithm-issue/2957>\
**Category:** Help Hub\
**Created:** [October 10, 2018, 5:15am UTC](https://community.postman.com/t/matching-algorithm-issue/2957 "2018-10-10T05:15:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vghevondyan](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@vghevondyan](https://community.postman.com/u/vghevondyan)\
**Post date:** [October 10, 2018, 5:15am UTC](https://community.postman.com/t/matching-algorithm-issue/2957/1 "2018-10-10T05:15:44Z")

</div>

Hi,

Could you explain in details Postman Matching algorithm(specially n and m in description:).

-Try to match the input path with the example path exactly as it is. The max value is set as the matching threshold.  
-Try to strip trailing slashes and match the input path with the example path. The threshold is reduced by a certain value, n.  
-Try to additionally lowercase the input path and the example path The threshold is reduced by a greater value, n + m.  
-Try to additionally strip out alphanumeric ids from the input path and the example path. The threshold is reduced further, n + 2m.  
-If all steps fail, this saved example is not an eligible response.

---

<div class="post-metadata">

**Author:** ![pratik](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pratik/32/224_2.png) [@pratik](https://community.postman.com/u/pratik)\
**Post date:** [October 12, 2018, 9:03am UTC](https://community.postman.com/t/matching-algorithm-issue/2957/2 "2018-10-12T09:03:04Z")

</div>

Every time the mock request path matches an example, the example gets a score and the example with the highest score is returned.

An exact match has the highest score. Every time there is a match after performing some transformation, the score gets reduced by an amount n. Every subsequent transformation reduces the score by n (or you can call it m). So you go from n to 2n (if n=m) or n+m (if n is not equal to m).
