Test, validate and match regular expressions
This PCRE2 regex matches a sequence of exactly 10 characters that are either 'd', 'e', or a literal pipe ('|'). Notably, because the pipe is inside a character class [], it acts as a literal character rather than a boolean OR operator, which is a common point of confusion. It utilizes global and multiline flags to find all such occurrences across a multi-line string.