weird Replace results...
Posted: Mon May 10, 2004 4:10 pm
I'm trying to insert a single line in about 50 HTML files but I'm getting weird results when I use the Replace All command.
I'm trying to change this:
<li> <a href="/courses.html">Courses</a></li>
To this:
<li> <a href="/courses.html">Courses</a></li>
<li> <a href="/prizes.html">Prizes</a></li>
Using this in the Replace command (Conditions: Text, Regular Expression; Scope: Active document):
Find what: <li> <a href="/courses.html">Courses</a></li>\n
Replace with: <li> <a href="/courses.html">Courses</a></li>\n<li> <a href="/prizes.html">Prizes</a></li>
I get this when I click the Replace All button:
<li><li> <a href="/courses.html">Courses</a></li>
nbsp;<a href="/courses.html">Courses</a></li>
<li><li> <a href="/courses.html">Courses</a></li>
nbsp;<a href="/prizes.html">Prizes</a></li>
I've used the Replace command many times with and I've never had any problems. Any ideas?!?
I'm trying to change this:
<li> <a href="/courses.html">Courses</a></li>
To this:
<li> <a href="/courses.html">Courses</a></li>
<li> <a href="/prizes.html">Prizes</a></li>
Using this in the Replace command (Conditions: Text, Regular Expression; Scope: Active document):
Find what: <li> <a href="/courses.html">Courses</a></li>\n
Replace with: <li> <a href="/courses.html">Courses</a></li>\n<li> <a href="/prizes.html">Prizes</a></li>
I get this when I click the Replace All button:
<li><li> <a href="/courses.html">Courses</a></li>
nbsp;<a href="/courses.html">Courses</a></li>
<li><li> <a href="/courses.html">Courses</a></li>
nbsp;<a href="/prizes.html">Prizes</a></li>
I've used the Replace command many times with and I've never had any problems. Any ideas?!?