Regular expressions pcre2 · Common patterns

Semantic version

Match versions like 1.4.2, 2.0.0-beta.1 or 1.0.0+build.5.

^\d+\.\d+\.\d+(?:-[\w.]+)?(?:\+[\w.]+)?$

Official Regular expressions pcre2 documentation

More common patterns commands

All common patterns commands · Regular expressions pcre2 cheatsheet

Was this page helpful?