Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

98.Advanced search and replace -- How to make html tags for image file list automatically?

User: editor -- 2008-05-14          << 97  99 >>
Hits: 2185
Type: Advanced search and replace   
Search all Advanced search and replace examples
I have a list of image files, like a1.jpg, a2.jpg, ..., how to make an html tag for each image? need to show image name without '.jpg' extension when mouse move to the picture.
Input Sample:
Output Sample:
<img src="a1.jpg" alt="a1">a1.jpg</img>
<img src="a2.jpg" alt="a2">a2.jpg</img>
<img src="a3.jpg" alt="a3">a3.jpg</img>
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source file(list of image files)      
2. ctrl-h open replace dialog,      
in 'Replace' page,
1)set 'replace unit' to 'Line' 
2)set 'Search for Pattern': 
 means for every line 
3)set 'Replace with Pattern': 

3. Click 'Replace', that's ok!

1. double quote " must add a leading \, like \".
2. chars($match,1,-5) means from first char to bottom 5 char, chars("123.jpg",1,-5) will return 123.
Download Script:  scripts/

Screenshot 1:  Replace_Window

Similar Examples:
How to add alt attribute for all img tags in html files automatically? (65%)
How to extract tables from html files into csv file automatically? (63%)
How to change network configuration files automatically? (61%)
How to calculate the area of triangles base on 3 sides automatically? (61%)
How to remove/delete ending spaces of all lines automatically? (60%)
How to split every file in a directory automatically? (58%)
How to add title attribute for all images in html files automatically? (57%)
How to find the 5 largest number from a text file automatically? (57%)

Check Demo of Advanced search and replace
how to make html tags  quote  picture  alt  img  leading  quot  123  extension  image  show file name in first line  how to make image list in html  img tag  how to make image file list  image search html tag  html tag each line  add first line to every line  without char