Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

114.Advanced search and replace -- How to change http address to hyperlink?

User: editor -- 2008-05-16          << 113  115 >>
Hits: 3073
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
I have a file recording a lot of address, how to change these address to hyperlink? 
Input Sample:
202.113.125.111/01.pdf 
202.113.125.111/02.pdf 
202.113.125.111/03.pdf 
202.113.125.111/04.pdf
Output Sample:
<a href=http://202.113.125.111/01.pdf>202.113.125.111/01.pdf</a> 
<a href=http://202.113.125.111/02.pdf>202.113.125.111/02.pdf</a> 
<a href=http://202.113.125.111/03.pdf>202.113.125.111/03.pdf</a> 
<a href=http://202.113.125.111/04.pdf>202.113.125.111/04.pdf</a> 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source file 
2. ctrl-h open 'Replace' dialog: 
in 'Replace' page: 
* set 'Replace Unit' to 'Line' 
* set 'Search for pattern': 
 
* set 'Replace with Pattern': 
 
3. click 'Replace', ok!
Download Script:  scripts/114.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to change the http address to related email address in text file? (60%)
How to make an http address list with increasing ID? (59%)
How to extract all html address from a text file? (56%)
How to extract/parse all http addresses from text/html file? (55%)
How to change all the webpage address into links inside a html file? (54%)
How to count how many http address and email address appearing in a html file? (54%)
How to sort all lines of ip addresses in a text file? (53%)
How to change the format of url and add ".htm" at end? (53%)

Check Demo of Advanced search and replace
Keywords:
chm  hyperlink  href  a href  perl  record  link  address  addr  http  page 1  search and replace open source  search pattern  replace pattern  search replace  search file  how to replace with  replace with file