Forum Moderators: open
and the only think that needs to be changed in for the links is to change dashes ("-") to underscore ("_").
Example:
<li><a href="http://www.widgets.com/my-cool-widget.html">My cool widget</a></li>
<li><a href="http://www.widgets.com/my-cool-widget2.html">Another cool widget</a></li>
should become:
<li><a href="http://www.widgets.com/my_cool_widget.html">My cool widget</a></li>
<li><a href="http://www.widgets.com/my_cool_widget2.html">Another cool widget</a></li>
..the only difference among 200 pages between the dash changed to an underscore and only where the <li></li> is present.
Thanks in advance for your help
As for a program that allows for condition statements like within the <li>, I don't know of any. Maybe others will know.
it_could_be_anything
Thanks!
a program that allows for condition statements
I would love a text editor that allowed conditional statements in a global search and replace over many documents.
I often have html editing issues just like this one, and usually have to result to circumstantial luck (the pages just "happen" to have this or that characteristic) or some bit of goofy but clever trickiness I dream up in the shower.
I would love a text editor that allowed conditional statements in a global search and replace over many documents.
HomeSite does! You can do a search and replace using regular expressions... [google.com]
If this were PHP, I would use preg_replace_callback() : a method that selects a piece of text that matches a pattern and feeds it to another function, the callback function.