Skip to content

Instantly share code, notes, and snippets.

@faim87
Last active October 20, 2025 05:23
Show Gist options
  • Select an option

  • Save faim87/d4c418ec01a925ceee8bd5b7cc400ef9 to your computer and use it in GitHub Desktop.

Select an option

Save faim87/d4c418ec01a925ceee8bd5b7cc400ef9 to your computer and use it in GitHub Desktop.
Uzbekistan phone codes - regex pattern.

Mobile = /^9989[012345789][0-9]{7}$/

All = /^998(9[012345789]|6[125679]|7[01234569])[0-9]{7}$/

@ilhom95055
Copy link

ilhom95055 commented Oct 6, 2024

bu holatda faqat 9 bilan boshlangan kodlarda ishlaydi va + talab qilmaydi
/^[+]{1}998[1-9]{2}[0-9]{7}$/ mana shu variantni taklif qilaman

+998948007117

[
[
{
"content": "+998948007117",
"isParticipating": true,
"groupNum": 0,
"startPos": 0,
"endPos": 13
}
]
]

@husanmusa
Copy link

https://regex101.com/r/CCzyH0/1

bu yerda ko'proq bor.

@azkhabibullaev
Copy link

^998(9[012345789]|2[0]|3[3]|5[0]|7[012345679])[0-9]{7}$

@Titmdeveloper
Copy link

Meni taklifim hamma dasturchilar comunityda bitta telefon raqamga kelishish kerak va bitta pattern ishlatish kerak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment