Test and debug regex patterns against sample text. Use when checking match groups, validating patterns, generating replacements, linting syntax.