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
1229.Advanced search and replace -- How to replace numbers with alphabets and reverse their order in all tags?
User:
Dilip -- 2014-08-07
<< 1228
1230 >>
Hits:
2732
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
Replace numbers in a tag with alphabets and reverse their order in all tags found.
<id>012345</id> should become <id>abcde<id> and then should be reversed to
<id>edcba</id>
I want to do for all 2000 such tags in one go!
Input Sample:
<id>012345</id>
Output Sample:
<id>edcba</id>
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:
(?<=
)\d+(?=
)
* set 'replace with pattern' to:
reverse(replace($match,'0-9','a-j',2))
3. click 'replace', done.
4. ctrl-s save to file.
Screenshot 1: Replace_Window
Similar Examples:
How to replace all numbers 93 in every line that contains gas?
(61%)
How to replace a number with another number in same text file?
(58%)
How to expand all the numbers in the list and seperate them by comma?
(56%)
How to sort the numbers in each line by the descending order in a text file?
(54%)
How to replace specific words with its previous words in the same column?
(52%)
How to replace a words with the previous word in the same column?
(52%)
How to merge lines with previous lines that ended with backslash?
(52%)
How to calculate the number of days between every two adjacent dates?
(52%)
Check Demo of
Advanced search and replace
Keywords:
abcd
12345
1234
123
reverse
200
tags
found
abc
tag
text replace reversed
search text file in reverse
replace in reverse text
reverse text
replace tags
all numbers
and replace numbers in text file
search numbers