Forums
This topic is locked
Seacrh and Replace
Posted 11 Jan 2006 20:11:55
1
has voted
11 Jan 2006 20:11:55 Paul Gauci posted:
Here is my situation. I have about 100 documents that have this structure that I need to run a search and replace on with regular expression
<title>Accounting</title>
{
...the code that is here varies from file to file..
}
<script>
<title>Mod 1</title>
</script>
What I need to do is Search the file, take the text that is in the first <title> tag and place it in the second <title> tag but I cannot find a regular expression to do this...
I can find both title tags with:
(<title><img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>(.*?)(</title><img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
but need to know the regular expression to find everything in the:
{
...the code that is here varies from file to file..
}
Is that even possible. Any help would be appreciated.
Cheers
Paul
DWMX
Replies
Replied 21 Feb 2006 18:45:47
21 Feb 2006 18:45:47 Shaggy Shaggie replied:
Text Workbench (www.silveragesoftware.com/hffr.html) is almost perfect for search and replace jobs.