in reply to Match all Non-0 and Letters
What about just converting it to decimal instead, e.g. see https://perldoc.perl.org/functions/hex.html
Update: If you want to limit the data to a range of values, you should STILL convert from hex to decimal first and then apply the test. In other words just forget the idea that fffffff is corrupt because e.g. 0000000A is only 10 in decimal - quite a low value and you might want to include the value 10!
One world, one people
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Match all Non-0 and Letters
by haukex (Archbishop) on Jun 26, 2017 at 17:58 UTC | |
| |
| A reply falls below the community's threshold of quality. You may see it by logging in. |