So if the line contains static replace [something] here then something is replaced. That works no problem. If I have static replace [something] and [another] thing then I get into problems. Can anyone help and point me in the right direction it would be greatly appreciated. Thanks in advance.if ($loop_line =~/\[(.*)\]/) { my $replace = $1; $loop_line =~s/$replace/$replace_with/; }
In reply to Replacing multiple matches by alongwor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |