The code:
print "Found: $_\n" foreach map { $devicesData =~ $_ } @matches;
would seem to print what you "said" you wanted. The solution from poj may be more broadly useful.
In reply to Re: Regex Array matching
by mr_ron
in thread Regex Array matching
by Monkless
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |