Bady

Bady / AdvancedPhoneParser / 0.3.0

README.md

Overview

You can parse phone numbers from string

Usage

Input

Describe the input fields for your algorithm. For example:

ParameterDescription
dataString: input string
countryPhonePrefixString: your country phone prefix
countryLengthPhoneInteger: max length of phone number in your country
separatorListString[]: Array of separator

Output

Return array of phone strings

ParameterDescription
StringArrayString[]: Array of string of phones

Examples

input params

{ "data":"test (044)546-77-46,(50)546-4312", "countryPhonePrefix":"+380", "countryLenghtPhone":13, "separatorList":[" ", ","] }

will return [ "+380445467746", "+380505464312" ]