Test, validate and match regular expressions
Matches PHP-FPM socket references such as php7.4-fpm.sock or php8.2-fpm.sock, where the major version is 5–9 and the minor version is a single digit. The surrounding (\W|^) and (\W|$) groups act as word boundaries so the path isn't part of a larger token, and multiline mode makes ^/$ match at line edges. Commonly used to scan nginx/Apache configs, logs, or scripts for PHP-FPM unix socket paths. Note the unescaped dot matches any character, not strictly a period.