Build, test, and debug regular expressions
This PCRE regex (with global and multiline flags) is designed for cleaning up semicolon-separated lists. It matches and helps remove leading/trailing whitespace and semicolons on each line, collapses consecutive semicolons and whitespace after delimiters, and trims whitespace following content characters. Useful for normalizing delimited data formats, CSV-like fields, or configuration values.