Test, validate and match regular expressions
Matches a three-part semantic version number (e.g., '1.4.2') and captures each numeric component separately: major, minor, and patch version. The escaped dots ensure literal period separators between segments, while the 'gm' flags enable finding all matches across every line of input. Commonly used in Go for parsing, validating, or extracting version strings from logs, config files, or dependency manifests.