I need a regular expression that will match one or more phone numbers that can be separated by semicolons (;
) and the number length can be 7 or more characters 0-9
and +
, -
, _
.
Like the following:
1234567
1234567;1234567
1234567;+0591234567
1234567777;1234567777;1234567891
I've tried the following regular expression, but it failed:
^[0-9.-_+]{7,}(;[0-9.-_+]{7,})*$