in reply to Re: Simple regex
in thread Simple regex

Here's another way to do the same thing:
$return{"objdump"} =~ s/.*?([0-9a-f]{8}|$)/$1/gs; print "\\x$_" for $return{"objdump"} =~ /../g;
The first line strips out every string preceding an eight-digit hex number or end of string. The second line splits the string into two-digit substrings and prints them.

Caution: Contents may have been coded under pressure.