in reply to Explanation of a regular expression
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 ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Explanation of a regular expression
by lshatzer (Friar) on Jul 13, 2001 at 23:14 UTC |