work on $x extracts (clumsily) the hexadecimal pairs after the first colon with a space after it, and then precede each pair with an 'x'.
work on $c to remove hex pairs after a colon preceded by hex chars and then remove any new lines.
Then print the result in a formatted way.
My guess is that this code could be replaced by one regexp (2 tops), but without seeing data I can't recommend the best way to approach.
cLive ;-)
In reply to Re: Explanation of a regular expression
by cLive ;-)
in thread Explanation of a regular expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |