User: Damir -- 2013-07-25 << 1109 1111 >> |
Hits: 3447 |
Type: Regular expression replace |
Search all Regular expression replace examples |
Description: |
How to add title attribute for all links automatically in TXT file? |
Input Sample: |
<a class="L2" href="http://www.xxxx.com/page1.html"> NameText1</a> <a class="L2" href="http://www.xxxx.com/page2.html"> NameText222</a> |
Output Sample: |
<a class="L2" title="NameText1" href="http://www.xxxx.com/page1.html"> NameText1</a> <a class="L2" title="NameText222" href="http://www.xxxx.com/page2.html"> NameText222</a> |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open text file 2. ctrl-h open 'replace' dialogue * set 'search for pattern' to: * set 'replace with pattern' to: 3. click 'replace', done. 4. ctrl-s save to file |
Screenshot 1: Replace_Window |
Similar Examples: |
How to add title attribute for all images in html files automatically? (77%) How to add alt attribute for all img tags in html files automatically? (70%) How to extract all links of a webpage periodically and save to file? (59%) How to delete all the lines without ceramics in text file? (57%) How to remove/delete ending spaces of all lines automatically? (57%) How to add italic tags for all lines that started with hash #? (56%) How to delete from FILE A all lines that appear in file B? (56%) Need to extract all links from html file (55%) |
Check Demo of Regular expression replace |
Keywords: |
attribute class add title links automatically automatic automat auto link title save links search links replace links search expression add text add 1 all text replace all |