in reply to Re: Explanation of a regular expression
in thread Explanation of a regular expression

This is as close as I got to making this shorter... given the likely data HyperZonk gave.
#!/usr/bin/perl -p s{^([^:]+):(\s*(?:([\da-f]{2})\s*)+)\s*(.+?)$} {\t"$2",\t\t/* $1: $4 */}x; s/([\da-f]{2}\s)/x$1/g; s/" | "/"/g;
I got it down to three regexs, the last one as a kludge...
I am sure if I have spent more time with this, I could have worked it out.