Pattern
/(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*(?::[a-z0-9][\w.-]*)?/
Sample text
nginx:1.27-alpine ghcr.io/org/app:latest ubuntuTest this pattern in the editor
registry/name:tag image references.
/(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*(?::[a-z0-9][\w.-]*)?/
nginx:1.27-alpine ghcr.io/org/app:latest ubuntuTest this pattern in the editor
MAJOR.MINOR.PATCH with optional pre-release.
7–40 hex characters typical of git commits.
Absolute POSIX-style filesystem paths.
Drive-letter paths with backslashes.
Find spaces/tabs at end of lines.
0x-prefixed hexadecimal integers.