Illustration of a date, a phone number and a version string each broken into separate numbered pieces

Text & writing

Numbers vs. Dates, Phone Numbers, and Version Strings

Dates, phone numbers, version numbers, IP addresses, and ranges are made of digits, but they are not single numbers. A number extractor has to decide what to do with them, and the answer explains most surprising results. This guide walks through each case and the reasoning behind it.

Ready to try the tool this guide describes?

Why they are not single numbers

A number is a value you could add, compare, or average. A date like 09/27/2026 is three values (month, day, year) joined by slashes; a phone number is a sequence of digit groups; a version number such as 2.0.24 is a list of counters. Treating any of these as one number would produce a meaningless value, so a simple extractor lists their parts instead.

How common patterns come out

How common patterns come out comparison
TextExtracted numbersWhy
09/27/202609, 27, 2026Slashes separate the parts of a date
555-123-4567555, 123, 4567Hyphens between digits are separators, not minus signs
10-2010, 20A range, not ten minus twenty
2.0.242, 0, 24More than one dot means it is not a decimal
192.168.1.1192, 168, 1, 1The four parts of an IP address
-4 °C-4A minus with a space before it is a sign
COVID-1919A hyphen joined to a word is not a minus

Thousands separators and decimal points

In English-language text, 1,250 and 1,250.50 use commas to group thousands and a point for decimals, so they stay whole. Many other countries write the same amount as 1.250,50 or 1 250,50. An extractor that follows the English convention will split those into separate numbers, so check results from European sources carefully.

When you need the whole value

  • For dates, use a date parser or your spreadsheet’s date format instead of a number extractor.
  • For phone numbers, keep them as text so leading zeros and the + prefix survive.
  • For version numbers and IP addresses, copy them as they are; they are identifiers, not quantities.

Numbers vs. Dates and Versions FAQ

Why does a date come out as three numbers?
A date is a month, a day, and a year joined by separators. A number extractor lists each part because the whole date is not a single number.
Is 10-20 a negative number?
No. When a hyphen sits directly between two numbers it is read as a range or separator, so 10-20 gives 10 and 20.
How is a version number like 2.0.24 handled?
Because it has more than one dot, it cannot be a decimal, so its parts are listed separately: 2, 0, and 24.
Why was 1.250,50 split up?
It uses the European style, with a point for thousands and a comma for decimals. English-style extraction reads the comma as a separator between numbers.
Should phone numbers be stored as numbers?
No. Store them as text, so leading zeros, spaces, and the + prefix are kept exactly.

Related guides

Open the tool

Jump into Extract Numbers from Text when you are ready to process your files.

← Back to all guides

More from Looty

Explore Looty’s Ecosystem

Discover more ways Looty can help you learn, organize, create, and make an impact.