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
51.Bin Hex Oct Dec converter -- Convert a text from binary to hex
User:
sysdemo -- 2007-11-25
<< 50
52 >>
Hits:
773
Type:
Bin Hex Oct Dec converter
Search all
Bin Hex Oct Dec converter
examples
Description:
Convert a text from binary to hex
Input Sample:
0101 1010 1010101 1001 - line1
101 101 111 10110 1011010 - line2
Output Sample:
5 a 55 9 - line1
5 5 7 16 5a - line2
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open the file
2. ctrl-h open replace dialog:
Settings:
1) Replace Unit=Word
2) Search for pattern:
.*
3) Replace with pattern:
calc(oct('0b'.$match),'x')
4) set 'If' as:
$match=~/^[01]+$/
3. Click 'Replace'
Notes: User can get other conversions from menu "Replace: Replace by Template:Bin/Hex/Oct/Dec Conversion" directly.
Download Script:
scripts/51.rst
Screenshot 1: Replace_Window
Similar Examples:
How to convert the text from decimal to hex in a file?
(67%)
Convert text file to HTML
(65%)
How to convert text with pig latin rules?
(59%)
How to convert the text from hex to decimal in a file?
(54%)
How to convert a text file to specified format?
(52%)
How to convert the text from hex format to ascii format?
(50%)
How to remove the text from line start to the first ":" in each line?
(50%)
How to sort the text file by the date at the beginning of each line?
(49%)
Check Demo of
Bin Hex Oct Dec converter
Keywords:
dec conversion
conversion
text from binary
converter
oct dec converter
bin hex oct
bin hex oct dec
hex oct dec
hex oct
oct
binary text converter
binary to text converter
hex to binary file converter
text converter
converter text
text to binary
binary to text
binary menu