Hi,
I am trying to search and replace in a file. I am trying to look for the word: foo in every line:
foo f1 f2 f3.....
and replace it with:
foo f1 new_word f2 f3...
I think i'm close with the following line of code but not quite there yet:
$line =~ s/^foo(\s)*/.foo(\s)*new_word/;
Thanks in advance!
Omar.
I am trying to search and replace in a file. I am trying to look for the word: foo in every line:
foo f1 f2 f3.....
and replace it with:
foo f1 new_word f2 f3...
I think i'm close with the following line of code but not quite there yet:
$line =~ s/^foo(\s)*/.foo(\s)*new_word/;
Thanks in advance!
Omar.