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
457.Advanced search and replace -- How to change the format of url and add ".htm" at end?
User:
nicetin -- 2010-03-23
<< 456
458 >>
Hits:
1796
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
How to add the ".htm" into a mixed char and number and symbol.
Input Sample:
list.php?catid=50010850">
Output Sample:
list-50010850.htm">
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open source text(or html) file
2. ctrl-h open 'replace' window
* in 'Search for pattern', enter:
list.php\?catid=(\d+)">
* in 'Replace with pattern', enter:
list-$1.htm">
3. click 'Replace', done.
4. ctrl-s save to file
Download Script:
scripts/457.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to change the many urls in html to ids in sequence?
(65%)
How to change text file format with user specified rules?
(57%)
How to batch change format of multiple files?
(57%)
How to change all files that contains words "RRR" to read-only?
(53%)
How to batch change a lot of xml files, adding all <ID> by 1?
(53%)
How to change http address to hyperlink?
(53%)
How to change date format from Aug-12-2008 to format like 2008-08-12?
(52%)
How to convert the text format by user specified rules?
(52%)
Check Demo of
Advanced search and replace
Keywords:
mix
php
url
symbol
how to change the format of
sym
format
htm
html
list
url format replace
add url
symbol pattern
html format
replace url
file number format
end with number
number end