On Tue, Jan 13, 2009 at 03:37:06PM -0800, 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.
Are these filenames mixed in with other text, or do you simply have a list of filenames? Anyway, here's something to start with: Find (\d+(?:-[A-Z])?\.htm) Replace <li><a href="http://widstock.com/static/\1">\1</li> Ronald --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
