Test, validate and match regular expressions
This regular expression matches a sequence of word characters (letters, numbers, or underscores) that is immediately followed by an arrow operator (`->`). It utilizes a positive lookahead to ensure the arrow is present without including it in the match. This is highly useful for extracting variable or function names that precede an arrow in programming languages like PHP, C++, or Python for return type hints. The `s` flag allows the lookahead to match across newlines.