$a =~ s/(<\/?tag[^>]*>)([\w ]*)/push @b, ($1,$2)/eg;
Also it is probably a good idea to avoid $a and $b for variable names because of their special status with regard to sort.
Cheers,
JohnGG
In reply to Re^3: Split tags and words nicely
by johngg
in thread Split tags and words nicely
by bwgoudey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |