| User: editor -- 2008-05-14 << 97 99 >> |
| Hits: 541 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| 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: |
| a1.jpg a2.jpg a3.jpg |
| 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> |
| Answer: |
| 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! Note: 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/98.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to extract tables from html files into csv file automatically? (63%) 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 find the 5 largest number from a text file automatically? (57%) How to detect encoding type of a text file automatically? (56%) How to convert all the phrases to the Abbr automatically? (54%) How to capitalize the first words of each sentence automatically? (54%) |
Check Demo of Advanced search and replace |
| Keywords: |
| how to make html tags quote img picture image extension 123 double tags html tag show file name in first line how to make image list in html image search html tag how to make image file list add first line to every line html tag each line replace img replace quote |