Phone Number Extractor
Find and normalise every phone number in a text.
Decode octal character codes back into text.
Octal to Text decodes base-8 character codes back into text, accepting space separated, comma separated, backslash escaped and solid runs. Digits outside 0 to 7 are flagged, since an 8 or a 9 means the input was never octal.
Octal codes turn up in C string literals, in old Unix documentation, in some regular expression escapes and in puzzles. Reading them by hand means multiplying by powers of eight, which is exactly the sort of arithmetic worth handing to a machine.
This decodes octal in every format it appears in: space separated, comma separated, backslash escaped as in \101\102, or one solid run of digits split into three-digit groups. UTF-8 sequences are reassembled so multi-byte characters decode correctly, and any group containing a digit outside 0 to 7 is flagged — since 8 and 9 in an octal number mean the input is not really octal at all.
\101\102\103 decodes to ABC, which is the form octal takes inside string literals.
An 8 or a 9 is reported rather than decoded, because it means the input is not octal at all.
Multi-byte sequences become the character they encode rather than separate fragments.
Unseparated octal is divided into three-digit groups, which is one byte each.
Spaces, commas, line breaks and backslashes are all accepted in the same input.
Separated by spaces or commas, backslash escaped, or as a solid run.
Three digits per byte is standard for unseparated input.
UTF-8 reassembles multi-byte characters; code point mode reads each group as one character.
The decoded text appears immediately, with invalid groups listed.
Almost always because it contains an 8 or a 9. Octal only uses digits 0 to 7, so those characters mean the input is decimal or something else that was labelled octal by mistake.
Yes. A string like \101\102\103 is recognised and decoded to ABC, which is the form octal takes inside C and shell string literals.
Three, which is the width of one byte in octal. Any code below 100 needs to be padded to three digits for an unseparated run to split correctly.
Those are not character codes, so decoding 755 here gives you a character rather than a permission string. It is the same base but a different meaning.
What people who use the Octal to Text think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Octal to Text. It takes half a minute and no account.
Write the first reviewFind and normalise every phone number in a text.
Find which lines repeat in a list, and where they are.
Count words, characters, sentences and reading time as you type.
Generate grammatical random sentences for prompts and tests.
Generate filler text to an exact character or word budget.
Count consonants in any text and see which letters dominate.
Cycle text through every case format from one box.
Count every punctuation mark and see how a text is paced.