I m looking for a way to find and replace large number of text files. For example;
I want to choose;
<li><a href=''>Istanbul, TR POS </a></li> <li><a href=''>Ankara, TR POS </a></li> <li><a href=''>Izmir, TR POS </a></li>
WITH;
<li><a href='pos-istanbul-tr.php'>Istanbul, TR POS </a></li> <li><a href='pos-ankara-tr.php'>Ankara, TR POS </a></li> <li><a href='pos-izmir-tr.php'>Izmir, TR POS </a></li>
Notice that initial of the label is lowercased and also added as part of the link. This should be done for a large number of text files so i m looking for the most efficient way via regex or any software that you think that might help.
Cross-platform variant (+ building on @Jonathan Leffler’s answer)
Save it to
fill-href.pl:Run: