Alternatively, you could set $/='}' (see perlvar) and apply that regex to each "line", writing out to another file as you go.perl -0777 -pe 's/(?<="StrCatDone" "1";\s+"seq_name" ")sequence.V5_0(? +=";)/sequence_FOO/sg' datafile.txt
In reply to Re: Altering data files
by davidrw
in thread Altering data files
by Lhamo_rin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |