Hi Russ If the new filenames are all in a list then fortunately it is rather easy :)
Simply make sure, first, that there is nothing else in the file but the filenames. Then Find: .+ Replace: <li><a href="http://widstock.com/static/&">&</li> The assumption is that each filename is all of the line. You might want to check if there are any spaces or other "invisible" characters first. A very brief explanation. As I think you know .+ will find all the characters in a line except the return at the end. The & rather handily will put all that is found in the find expression into the replace expression. Here it is used twice because we need the found string twice in the replace expression. Patrick http://www.patrickjames.co.uk On 13 Jan 2009, at 23:37, russw wrote: > Is there a grep script that will take the following > > 100050-D.htm > > or any of the following... > 00005.htm > 61305-M.htm > 50161-L.htm > > and turn it into this... > > <li><a href="http://widstock.com/static/100050-D.htm">100050-D.htm</ > li> > > The above examples are all of my filename styles. I can see now why a > standard length and structure would have been smart at the onset. > > Thanks for any help here. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[email protected]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
