What have you tried? The simplest solution is probably something along the lines of $_ = "something" if /foo/ and /bar/, but you'll get better responses if you show what did or didn't work in your particular case.
In reply to Re: replace a line when regex match...
by revdiablo
in thread replace a line when regex match...
by perlknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |