What have you tried? Show us some code...
If you tried
you might considers[\w\w\w1\.data][$testname/]g
instead.s[(\w\w\w1\.data)][$testname/$1]g
The $1 stands for the text enclosed in the first set of round brackets in the pattern.
In reply to Re: how to modify the text in file
by Thilosophy
in thread ho w to replace a occurence of string by other string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |