Test, validate and match regular expressions
Matches an uppercase 'P' immediately followed by any non-word character (space, symbol, or punctuation). Commonly used to locate statistical P-value notations in scientific text, such as 'P < 0.05' or 'P=0.001', where the letter P precedes an operator or space. The multiline and global flags allow finding every occurrence across all lines of input.