Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the text.
  2. Read each hit as a candidate, not as a confirmed phone.
  3. Throw out anything that is obviously a card, an order id, or a too-short fragment.
  4. Turn Unique matches only on when the same number is repeated in a signature and a sentence.

What is Extract phone numbers?

Phone numbers are written too many ways for a simple digit grab, and too loosely for a perfect one. This page looks for an optional country code, then a group of two to four digits or a parenthesized group, then two more groups of three or four, with spaces, dots, or hyphens between them. “+1 (212) 555-0199” matches whole. “020 7946 0958” and “+44 20 7946 0958” match whole.

Read more

“Odd socks in the dryer.” has no number, so the list is empty. “555-0100” is too short for the three groups and is missed. “ext 12” is missed. Letters in a vanity number are missed. A closing format the pattern does not know, such as digits glued in an unusual split, is missed.

The same looseness creates false hits. “4111 1111 1111 1111” is a card, and the matcher still returns “4111 1111 1111”, dropping the last four because they do not fit another group. Do not treat this list as proof of a phone. Unique matches only collapses exact repeats. It does not check that the number can be dialed.

Use cases

  • A receptionist pulling callback numbers out of a weekend inbox export.
  • A journalist separating phones from the prose of a long tip.
  • A CRM import where the number column was buried in a notes field.
  • A reviewer checking that a 16-digit card was not mistaken for a phone.
  • A support tool listing UK and US layouts from the same pasted ticket.

A US number, a short number, and a card

Call +1 (212) 555-0199 or 555-0100. Card 4111 1111 1111 1111.

+1 (212) 555-0199 4111 1111 1111 555-0100 is missing. The card is partly matched and should not be dialed.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

The pattern wants three groups after an optional country code: two to four digits, then three or four, then three or four. Two groups are not enough.