T
text news
I have already posted a little earlier today "Extract text to html href" and
please forgive this second post but I have given it some thought and this
may be a little more focused.
It is the same problem but maybe a much simpler approach.
I need to do an advanced search and replace on a large number of files.
The search string is easy and identical in every file but the replace string
will be different on every file, although it can be easily identified and
exists in each file.
For example:
text of file 1.
"photo1
blah blah blah blah
xxxxx"
text of file 2.
"photo2
blah blah blah blah
xxxxx"
text of file 3.
"photo3
blah blah blah blah
xxxxx"
I want to replace xxxxx in each case with photo1, photo2 etc.
I could do this with wild cards but need a kind of double search.
i.e. search for photo# and make this the replace string.
now search for xxxxx and replace it with the result of the first search.
That must make more sense than my earlier posting.
Thanks
Les
please forgive this second post but I have given it some thought and this
may be a little more focused.
It is the same problem but maybe a much simpler approach.
I need to do an advanced search and replace on a large number of files.
The search string is easy and identical in every file but the replace string
will be different on every file, although it can be easily identified and
exists in each file.
For example:
text of file 1.
"photo1
blah blah blah blah
xxxxx"
text of file 2.
"photo2
blah blah blah blah
xxxxx"
text of file 3.
"photo3
blah blah blah blah
xxxxx"
I want to replace xxxxx in each case with photo1, photo2 etc.
I could do this with wild cards but need a kind of double search.
i.e. search for photo# and make this the replace string.
now search for xxxxx and replace it with the result of the first search.
That must make more sense than my earlier posting.
Thanks
Les