Build, test, and debug regular expressions
Matches each line and splits it into three capture groups: the leading non-whitespace token (e.g., a channel brand name), a single whitespace followed by an optional digit (often the channel number), and the remainder of the line. Commonly used in multiline processing of terrestrial TV channel lists or IPTV/EPG data to trim full channel names into base name, number, and suffix.