One thing I am wondering, I wanted to complicate it a bit more, I want to do something different for each second line! Can either of these ways skip lines or do something different on each line, please tell me if either can?
eg I have 2 links for each picture- 1st is large, second is small version. And I want this to happen.
<a href="HTTP.://IMG.1.LARGE.jpg" target="_blank">
<a href="HTTP.://IMG.2.LARGE.jpg" target="_blank">
Then I can just join each second line with the line before it. I found a vbs script to that.
Assuming that the thumbnail doesn't have the same name as the full size, (which logically it won't), just run two RegEx search/replace operations:
Replace: <a href="\1" target="_blank">
Replace: <img src="\1"/></a>
I'm only doing this in Notepad2-Mod, which only allows single line RegEx - other editors may allow multi-line RegEx in which case it could probably all be done in one RegEx operation, including the joining of the lines.
If the thumbnails were all the same size then conceivably you wouldn't need the ...SMALL... lines in the file at all, you just specify the height/width attributes of the img tag.
Replace: <a href="\1" target="_blank"><img src="\1" height="42" width="42"/></a>
BAD: It means all the large images get loaded at once.
GOOD: Faster display when you click on a thumbnail since the images are already loaded.
BTW, you need to put URL stuff into a CODE box sometimes, the forum software sees
and thinks it's a link and replaces it with [/URL].