in reply to Re: mysteries of regex substring matching
in thread mysteries of regex substring matching

> using the /g modifier in a loop /(....)/g

demo:

DB<53> $x = q[AAD34017837201D98AAED18778DEF993]; DB<54> $x =~ m/(....)/g and say $1 for 1..4 AAD3 4017 8372 01D9 DB<55>

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery