I'm pretty sure this can be simplified, I didn't try to.$contents=~s!>$! alt="text">!sig if $contents =~ m/<IMG/ && $contents +!~ m/alt/;
In reply to Re: Conditional regex
by elTriberium
in thread Conditional regex
by sherab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |