You write a regex. You test it against two or three sample strings. It matches perfectly.

Source: [Dev.to](https://dev.to/99tools/why-your-regex-works-in-testing-but-breaks-in-production-4jng)

Sponsored