Skip to content

Instantly share code, notes, and snippets.

@Yemolai
Created November 25, 2020 20:07
Show Gist options
  • Save Yemolai/202e8509f3909a10373d77ffae28dc5c to your computer and use it in GitHub Desktop.
Save Yemolai/202e8509f3909a10373d77ffae28dc5c to your computer and use it in GitHub Desktop.
Brazilian Phone Number Regex (mobile or not with area basic check)
/^(?:(?:\+|00)?(55)\s?)?(?:\(?([1-9][1-9])\)?\s?)?(?:((?:9\s?\d|[2-9])\d{3})\-?(\d{4}))$/.test('(21) 9 9999-9999')
// saved at https://regex101.com/r/R7VO4B/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment