in reply to replace a line when regex match...
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.
|
|---|