in reply to Re: Simple regex
in thread Simple regex
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.$return{"objdump"} =~ s/.*?([0-9a-f]{8}|$)/$1/gs; print "\\x$_" for $return{"objdump"} =~ /../g;
|
|---|