Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
RSS: Replace Pioneer Examples
495.Regular expression replace -- How to change all the webpage address into links inside a html file?
User:
editor -- 2010-05-02
<< 494
496 >>
Hits:
3461
Type:
Regular expression replace
Search all
Regular expression replace
examples
Description:
How to change all the webpage address into links inside a html file?
Input Sample:
<html>
... http://www.mind-pioneer.com
....
</html>
Output Sample:
<html>
... <a href=http://www.mind-pioneer.com>http://www.mind-pioneer.com</a>
....
</html>
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open source html file
2. ctrl-h open replace dialog
* in search for pattern, enter:
(https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))[\w\d:#%/;$()~_\?\\\-=\\\.&]*
* in replace with pattern, enter:
$match
3. click 'Replace', done!
4. ctrl-s save to file.
Download Script:
scripts/495.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to change all hyperlink text font into bold inside a html file?
(70%)
How to extract all image links from a html file?
(62%)
How to extract all specified links from a html file?
(59%)
How to extract all image links from multiple html files?
(58%)
How to extract/parse all http addresses from text/html file?
(58%)
How to download all webpages that linked from homepage?
(57%)
How to change all bold tag to bold-italic tag in multiple html files?
(57%)
How to automatically add Previous and Next link for many html files?
(57%)
Check Demo of
Regular expression replace
Keywords:
telnet
ftp
chm
href
a href
tel
inside
help
webpage
webp
save links
search links
html to links
replace links
replace all html source
html save
save html
search expression