Skip to main content

Try this regex pattern: - [+]?[0-9]{1,4}[\s]?[0-9]{10}[\+]?[0-9]{1,4}[\s]?[0-9]{10}

itIt accepts any country code with ++, a spacespace, and then 10 digit number.

Try this regex pattern - [+]?[0-9]{1,4}[\s]?[0-9]{10}

it accepts any country code with + a space and then 10 digit number

Try this regex pattern: [\+]?[0-9]{1,4}[\s]?[0-9]{10}

It accepts any country code with +, a space, and then 10 digit number.

Source Link

Try this regex pattern - [+]?[0-9]{1,4}[\s]?[0-9]{10}

it accepts any country code with + a space and then 10 digit number