No 1 or 0 in Phone Number Prefix

I’ve been trying to figure out how to avoid getting a 1 or a zero in the first spot of the phone number (i.e. 904-023-1221 654-123-5555) I have a regex I can use to replace the numbers between the hyphens but not sure how to do a replace with mockaroo. Or if someone has a simpler way I’d appreciate that just as well.

Thanks

I recently added a format option to the Phone field type. It should give you want you want. It’s also available in the API: https://www.mockaroo.com/api/docs#type_phone

The formats are doubtless helpful in the US, but less so for international users.

Here in the UK for example,

  • most domestic phone numbers have format (01xxx) xxx xxx, or (01xx) xxx xxxx .
  • mobile phones start (07xxx) xxx xxx
  • businesses often have numbers starting 0345 or 0845.