Extract Only the Words You Need from a Document: Order Numbers, Emails and Phone Numbers
Learn how to pull order numbers, email addresses and phone numbers out of OCR text. Covers the Word tools panel, categories, Starts with, Contains, Ends with and Pattern filters, easy pattern syntax and regular expressions, copying with duplicates removed, finding words on the original page, a multi-page PDF example and the limits.
- Published
- Updated
OCR gets you as far as turning a receipt photo or a multi-page order PDF into text. The hard part comes next. If you only need the order numbers, only the email addresses, or only the phone numbers from dozens or hundreds of lines, you end up scanning the text by eye and copying one item at a time into a spreadsheet or a chat. The Word tools panel in the Mandumon OCR app splits the recognized text into words, sorts them into categories, filters them by your conditions and copies the result in one go. This guide covers what the panel shows, how filters and patterns work, and how to check where each copied word came from in the original.
Sometimes you need all of the text, but more often you need one kind of information inside it. You might collect order numbers from a stack of order sheets to check shipping, move only the email address and phone number from a business card photo into your contacts, or see which words came up most in meeting notes. Copying everything and deleting what you do not want works, but it is slow and easy to get wrong.
Word tools break the job into four steps: analyze, filter, copy and locate. Everything runs inside your browser and there is nothing to sign up for. The app's tagline reads "Free · No sign-up · No uploads", which is reassuring when the text contains order numbers or contact details.
What the Word tools panel shows
After you recognize an image or a PDF, a Word tools panel appears below the original and the text editor in the results. It analyzes the recognized words from all pages as they were before any edits. If you fix text in the editor or tidy up lines, the word counts and positions do not change, so the analysis stays stable even when your edited text drifts from the original.
- Total words: every whitespace-separated word, counted with repeats.
- Unique words: the count with repeats removed. If "Ignore case when counting" is on, Apple and apple count as the same word.
- Top 10 words: the ten most frequent words and how many times each occurs.
- Counts by category: Hangul, English letters, Numbers, Alphanumeric, Email, URL, Phone number, Hashtag and Other.
Categories are a simple classification based only on how a word looks. A value such as W1024, which mixes letters and digits, is Alphanumeric, while a value made only of digits is Numbers. A value that contains separators such as hyphens or parentheses and has between 7 and 15 digits is treated as a Phone number. Emails, URLs and hashtags that start with # are each recognized by their shape too, and anything else falls into Other. Because the check is only about shape, the tool does not verify that an email address or phone number actually exists.
Filters: Starts with, Contains, Ends with and Pattern
To narrow the list, choose a Filter mode and type into the Word or pattern box. There are four modes.
- Starts with: typing W keeps only words that begin with W.
- Contains: typing 123 keeps words that have 123 anywhere inside.
- Ends with: typing .com keeps words that end with .com.
- Pattern: describe the whole shape of a word with the easy syntax or a regular expression, both explained below.
Turn on "Case sensitive filter" to treat upper and lower case as different letters. With it off, w1024 is found just like W1024. This option is separate from "Ignore case when counting". You can also pick one entry from the Category list, such as Email or Phone number, and it combines with the filter. For example, set the category to Alphanumeric and filter by Starts with W to keep only W codes that mix letters and digits. "Matching words" shows how many words passed, and if none did you will see "No words match this filter."
Easy patterns and the Quick patterns chips
You do not need to know regular expressions. In Pattern mode the easy syntax is the default, and it has only a few rules. All of them apply to whole words.
- W+digits: W followed by one or more digits. W1024 and W77 match, a bare W does not. The + sign joins parts together.
- *: any characters, zero or more. W* matches every word that starts with W, and *123 matches every word that ends with 123.
- Words for digits: the app also recognizes the word for digits in other languages, so a Korean user can type W+숫자 and a Japanese or Chinese user can type W+数字. Letters (or 영문) means one or more English letters.
- Names for shapes: alphanumeric means a code that has both letters and digits, and email, URL, phone and hashtag find words of that shape.
- Other special characters: characters that would be special in a regular expression, such as dots and brackets, are treated as plain characters, so you do not need to escape them.
The placeholder in the box reads "Example: W123, W+digits, W*". For the quickest route, use the Quick patterns chips: Alphanumeric code (e.g. W123), Starts with W, Numbers only, Email, URL, Phone number and #Hashtag. A chip fills in the matching pattern, so simple cases take one click, and for harder ones you can edit the pattern it inserted.
If you need finer control, turn on "Regular expression (advanced)". Type the expression without slashes, for example ^W\d+$. By default a partial match counts, so use ^ and $ when you mean the whole word. If the expression has a syntax error, the panel tells you and disables copying, so you cannot copy a wrong result by accident. Fix the brackets or repetition symbols and it recovers.
Copying results: new lines or commas, duplicates removed
Once the list shows what you want, press "Copy all". Two choices decide what is copied.
- Copy separator: "New line" puts one word per line, which pastes neatly into a spreadsheet column. "Comma" gives one line, which suits a search box, a chat message or a list of codes.
- Remove duplicates: when on, each word appears once, ordered by frequency. When off, the words keep the order and spelling they have in the document.
The case option for counting also applies to duplicate removal. With it on, W1024 and w1024 merge into one word, and with it off they stay separate. Each row also has its own copy button for taking a single word. The list shows the word, its category and how many times it occurs, so you can see at a glance which numbers repeat.
Click a word to see it on the original
To find out where a word came from, click it in the list or in the Top 10 words. Every occurrence of that word is selected, and the ones on the current page are highlighted with boxes over the original image or PDF page. The current occurrence is drawn darker, and the matching characters are selected in the text editor too.
- Previous occurrence and Next occurrence: step through the matches in the order they appear. They wrap around, so Next at the last match goes back to the first.
- Page changes: if the next match is on another page, the page switches automatically. The editor for that page opens even when the show-all-pages view is off.
- After edits: if you changed the text, the tool looks for the remaining copies of the same word in order within the edited text. It does not select a fragment inside a different word.
- When it cannot find the word: you will see "This word could not be located in the edited text. Its original location is highlighted.", and the highlight on the original stays.
Not every word has exact coordinates. With the Korean and English line recognition, where there are no per-word coordinates, the whole line is highlighted. In a PDF, if one text item contains several words, the whole item is highlighted. You will see "Exact word coordinates are unavailable. Highlighting the whole line or PDF text item." The tool never invents a position, so a box that looks wider than the word is expected rather than a bug.
Example: order numbers from a multi-page PDF
Suppose an order PDF has three pages and three order numbers: W1024, W2048 and W77. Assume W1024 appears on page 1, W2048 and W1024 on page 2, and W77 and W1024 on page 3. Here is how you would pull them out.
- Upload the PDF and finish recognition. Total words and Unique words in Word tools are calculated across all pages together.
- Choose Pattern as the Filter mode and type W+digits. The Starts with W chip or the Alphanumeric code (e.g. W123) chip narrows the list in a similar way.
- Check Matching words. In this example W1024 appears three times and W2048 and W77 once each, so you get five.
- Turn on Remove duplicates, choose New line and press Copy all. You get W1024, W2048 and W77 on separate lines, with the most frequent, W1024, first.
- Click W1024 to see its three positions. Each press of Next occurrence moves to pages 1, 2 and 3 in turn and highlights the number.
This is most useful for documents where the same number repeats across pages. A total page often prints the order number again, and turning on Remove duplicates folds those repeats into one. If you need to know how often each number appears instead, leave it off or read the Occurrences column in the list.
Where this helps in daily work
- Receipts: use the Numbers only chip to gather values made only of digits, such as approval number candidates, and an alphanumeric code to find a transaction ID.
- Order sheets and shipping slips: gather order numbers with a fixed prefix, such as W+digits, and copy them without repeats. If the prefixes differ, loosen the pattern with *.
- Business cards: switch the category between Email and Phone number to pick out just the contact details.
- Meeting notes: read the Top 10 words to see what came up most, and use the #Hashtag chip to pull out only the tags. Clicking a word shows which page and line it came from.
Limits to keep in mind
- If OCR misreads a character, the word is wrong too. Letters that look alike, such as the letter O and the digit 0 or a lowercase l and the digit 1, can be confused. Before you rely on a copied number, click the word and compare it with the original.
- Categories look at shape only. The tool does not judge whether an email or phone number is in use, and a code containing a hyphen can be sorted into Other.
- Words are split on whitespace. A number or name written with spaces can be separated into several words.
- A character-by-character match between your edited text and the recognized result is not guaranteed. Heavily edited parts may show only the original location.
- Korean line recognition is experimental. Handwriting, vertical text and complex tables can be less accurate, so always check the result.
In short, Word tools connect recognition, categories, filters, de-duplicated copying and a look at the original in one screen. Open the OCR app with the button below and try it first on a single order sheet or business card photo. Your text is processed only in your browser and is never uploaded to a server.
