in reply to Re: RegEx to remove leading zeros from a hex number
in thread RegEx to remove leading zeros from a hex number
use warnings; use strict; my $var = '0000'; $var =~ s/^0+//g; print ">>>$var<<<\n"; __END__ >>><<<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RegEx to remove leading zeros from a hex number
by JavaFan (Canon) on May 16, 2011 at 21:24 UTC | |
by Anonymous Monk on May 17, 2011 at 00:24 UTC |