Test, validate and match regular expressions
This regex matches a single word character that is immediately preceded and followed by the letter 'Y'. It uses positive lookbehind and lookahead to enforce the surrounding 'Y' characters, while the negative lookarounds ensure the preceding text is not 'XXY' and the succeeding text is not 'YYXX'. It serves as a practical example of combining positive and negative lookarounds for precise context-based text matching in PCRE2.