Here's one approach, if you want to do it by hand.
foreach my $cat (@cats) { if ($cat !~ m/meow=.+?/i) { # do action here } }
The process should work. However, if you have hundreds of tag/attribute combinations, you probably wouldn't want to hard code those combinations. Instead, you might prefer to do a subroutine and pass in the tag and attribute combo.
Hope this helps.
In reply to Re: XML cleanup - regex or ?
by dasgar
in thread XML cleanup - regex or ?
by ethrbunny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |