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
359.Bin Hex Oct Dec converter -- How to change a hex text into decimal and apply a maths expression on it?
User:
Vic.Struder -- 2009-11-30
<< 358
360 >>
Hits:
3222
Type:
Bin Hex Oct Dec converter
Search all
Bin Hex Oct Dec converter
examples
Description:
Hello, I'm looking for a way to convert Hex data in a .txt into decimal (and then have a data on 100)(in my case 255 is 100 and 127 is 50)(no decimal after the calculation)
Input Sample:
xxx 5@ff 12@63 34@1f
Output Sample:
xxx 5@100 12@39 34@12
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open source txt file
2. ctrl-h open 'replace' dialog:
* enter "search for pattern" like:
\@([0-9a-f]+)
* enter "replace with pattern" like:
\@calc(oct('0x'.$1)*100.0/255+0.5,'d')
3. click "Replace" button, done.
4. ctrl-s save the file.
Download Script:
scripts/359.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to change all numbers in a text file to 2 decimial places?
(58%)
How to convert the text from decimal to hex in a file?
(55%)
How to change all the letters in a text file to upper cases?
(54%)
How to change a paragraph of text to a specical shape like a triangle?
(54%)
How to change all hyperlink text font into bold inside a html file?
(51%)
How to translate the hex number to decimal number inside a text file?
(50%)
How to change the even sequence id of the comma to space in each line?
(49%)
How to search and replace with multiple mapping rules by regular expression?
(49%)
Check Demo of
Bin Hex Oct Dec converter
Keywords:
110
math
converter
oct dec converter
bin hex oct
bin hex oct dec
hex oct
hex oct dec
bin hex
decimal
convert a calculation to text
convert hex file into txt file
text file converter with search and replace
txt to hex
change text into hex
hex txt
change to hex
hex to decimal converter