Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Help with parsing a string

by pc88mxer (Vicar)
on Jul 22, 2008 at 21:31 UTC ( #699433=note: print w/replies, xml ) Need Help??

in reply to Re: Help with parsing a string
in thread Help with parsing a string

If you lines contain other text besides the hex numbers, you can restrict the space removal to just between the hex numbers with:
$line =~ s{\b([a-f\d]{2})\s+(?=[a-f\d]{2}\b)}{$1}gi;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://699433]
[LanX]: cho: your joke has very limited impact on a non German+Czech speaking board ... we need to create one and invite Lichtkind and "Peta...Monk"
[Eily]: I still don't understand how the Turkish AA fit into the German+Czech joke though :P
[LanX]: new Firefox + cb sidebar do random auto expand on submit

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-03-27 12:08 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (319 votes). Check out past polls.