
While this system largely works, it is not very sophisticated and has its limitations. This module does a great job of capturing a vast array of various formats of valid phone numbers while avoiding false positives (not quite true for US phone numbers, please read the "limitations" section below). My system attacks the problem by removing all non numeric characters from a string input, putting the numbers into an array, iterating through the array and applying regular expressions combined with specific detection rules. Detects almost any imaginable way of writing a phone numberįor a recent project I was asked to extract phone numbers from online adverts.Īt first it seemed like a trivial task, but I soon realised that people write phone numbers in so many different ways it will make your head spin!Īfter researching local classified sites I literally found every possible combination imaginable - including with / without international prefix, number-to-letter substitution, intended obfuscation, varying block size, brackets, spaces, dashes - you name it!Įasy for humans to recognise, but pretty hard for a computer.Extract numbers with / without international prefixes (e.g +61).
#PHONE NUMBERS EXTRACTOR ONLINE FREE#
Extract phone number candidates from free text.

While we got a great library for international phone number validation and formatting e.g Google libPhoneNumber my library is able to identify possible phone number candidates by examining free text of any length. Extract and match phone numbers from arbitrary text strings from e.g websites, forums posts and online classifieds.
