Skip to content
Learn with RV – Tech Blog
Learn with RV – Tech Blog

#testautomation #qa #programming #linux #devops

  • Home
  • Who am I?
  • 1-on-1 Mentoring
  • Test Automation Incubator
  • 24 Testimonials
  • YouTube
  • LinkedIn
  • Contact
Learn with RV – Tech Blog

#testautomation #qa #programming #linux #devops

api-matchers-banner
February 20, 2026February 20, 2026

Understanding /* vs /** Patterns

In software development and test automation, of the most overlooked yet powerful skills is mastering path matching patterns – especially wildcards like /* and /**. These patterns show up everywhere: request mocking, route interception, contract testing, proxy rules, and even security testing.

Despite their simplicity, they can dramatically affect test accuracy, coverage, and maintainability. In this deep dive, we’ll explore what these patterns actually mean and how they behave in different contexts.

Core difference: /* vs /**

/* — Single Path Segment

Matches exactly one level in a path.

e.g.
/api/*

matches

/api/users
/api/orders
DOES NOT match
/api/users/123
/api/users/profile

Conclusion: think of /* as “match exactly one folder level.”

/** — Recursive Match

Matches zero or more path segments.

e.g.

/api/**

matches
/api/users
/api/users/123
/api/users/123/orders
/api/

Conclusion: think of /** as “match everything under this path.”

Quick pattern comparison

api-matchers-comparison

Enjoyed this article?
I share more practical automation tips on YouTube and LinkedIn.

Need structured guidance instead of learning alone?
I offer 1-on-1 mentoring – learn more → HERE

Or email me at iamqarv [at] gmail [dot] com

Post Views: 6

Related

Share this article:
Programming

Post navigation

Previous post

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Understanding /* vs /** Patterns
  • NodeJS v20 added native support for reading environment variables
  • ‘selectors’ vs. ‘locators’ – what is the difference?
  • Internationalization (i18n) – in test automation
  • Appium v3 is here: essential changes

Recent Comments

  1. Paul on Web Accessibility: A step-by-step guide to Testing with pa11y
  2. Automated Tests for website Accessibility with Axe and TestCafe - Learn with RV - Tech Blog on How to generate E2E TestCafe Framework in seconds
  3. RV on Exploring Faker.js: A Powerful Tool for Generating Realistic Random Test Data
  4. Adrian Maciuc on Exploring Faker.js: A Powerful Tool for Generating Realistic Random Test Data
  5. Nick on Cypress vs Playwright vs Testcafe – which framework is faster?

Archives

  • February 2026
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • March 2025
  • February 2025
  • January 2025
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023

Categories

  • Linux
  • Programming
  • QA
  • Tools
  • Uncategorized
©2026 Learn with RV – Tech Blog | WordPress Theme by SuperbThemes