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?!?
weird Replace results...
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
weird Replace results...
-----
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm