Pattern
/[A-Za-z]:\\(?:[^\\/:*?"<>|\r\n]+\\)*[^\\/:*?"<>|\r\n]*/
Sample text
C:\Users\Professional\Projects\RegexBench D:\data\file.txt /not/windowsTest this pattern in the editor
Drive-letter paths with backslashes.
/[A-Za-z]:\\(?:[^\\/:*?"<>|\r\n]+\\)*[^\\/:*?"<>|\r\n]*/
C:\Users\Professional\Projects\RegexBench D:\data\file.txt /not/windowsTest 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.
Find spaces/tabs at end of lines.
0x-prefixed hexadecimal integers.
Naive capture of JSON double-quoted strings.