in reply to Re: Explanation of a regular expression
in thread Explanation of a regular expression
I got it down to three regexs, the last one as a kludge...#!/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;
|
|---|