Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

hirwaaldo1/regex-for-Rwandans-phone-numbers

Domaine:

digital infrastructure
Créateur:
hir
Hôte:
This is the regex for Rwandan phone numbers, which can be used for MTN, Tigo, or Airtel. # Regex for Rwandans phone numbers This is the regex for Rwandan phone numbers, which can be used for MTN, Tigo, or Airtel. ## Usage Use this regular expression to validate a mobile phone number input string in Rwanda in your code. The regular expression can be used in any programming language or text editor that supports regex. ## Regular Expression The regular expression is: `/^\+?(25)?0(\s)?-?7(\d){2}(\s|-)?(\d){3}(\s|-)?(\d){3}$/g` ## Explanation - `/^`: Denotes the start of the input string - `\+?`: Matches an optional plus sign - `(250)?`: Matches an optional country code (250) for Rwanda - `(\s)?`: Matches an optional space character - `\-?`: Matches an optional hyphen character - `0?`: Matches an optional leading zero - `7(\d){8}`: Matches the 9 digits of the mobile phone number (the first digit must be 7) - `$/g`: Denotes the end of the input string and the global flag for finding multiple matches. ## References Here are some resources that were used to create and test this regular expression: - Rwandan phone numbers - Wikipedia - Regular Expressions - MDN Web Docs

Visit

github.com

Languages

Kinyarwanda

Tags

airtaljavascriptmtnregex-patternregular-expressionrwandatigo

Similaires

ismailisimba/tanzania-phone-numbersAppsLab-KE/format-kenya-phone-numbersBe-Grand/angola-phone-numbers-apiMice, Cows, and Real RwandansEnhancing ANPR accuracy for staff car verification using convolutional neural networks and RegEX correctionJeremiah-J-Emmanuel/alu-regex-data-extraction-Jeremiah-J-Emmanuel

ismailisimba/tanzania-phone-numbers

# Tanzania Carrier Lookup A simple, fast, and self-contained web tool to identify the mobile netw

AppsLab-KE/format-kenya-phone-numbers

This package validates and format kenya phone numbers.

Be-Grand/angola-phone-numbers-api

APNA is an Angolan API created to help developers obtain information such as which operator, to whom

Mice, Cows, and Real Rwandans

Abstract As an alternative to NGO- or state-initiated arts, this chapter explores t

Enhancing ANPR accuracy for staff car verification using convolutional neural networks and RegEX correction

This research paper presents the development and evaluation of an Automatic Number Plate Recognition

Jeremiah-J-Emmanuel/alu-regex-data-extraction-Jeremiah-J-Emmanuel

This is for the individual formative lab, the Regex onboarding hackathon, at the African Leadership