Skip to content

Instantly share code, notes, and snippets.

@faim87
Last active October 6, 2024 09:36
Show Gist options
  • Save faim87/d4c418ec01a925ceee8bd5b7cc400ef9 to your computer and use it in GitHub Desktop.
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}$/

@Sodiqmirzo
Copy link

For 998 33 XXXxxXX, 998 88 XXXxxXX not working

you can use below link regex
https://regex101.com/r/O1dJic/1

lekin bunda orasida joy bo'lsa o'tkizmas ekan masalan +99899 123 45 67

ha bunga o'tkazmaydi space bo'lmasligi kerak

@JaxongirIsmoilov
Copy link

(?:+[9]{2}[8][0-9]{2}[0-9]{3}[0-9]{2}[0-9]{2}) akalar mana shuni ishlatsa ham to'g'ri chiqararkan Format: +998901234567

@khalmurad
Copy link

Barcha kodlar uchun ishlaydigan regex (faqat joy tashlamasdan, orasida simvol yozmasdan ishlatish kerak):

^[+]998([0-9][012345789]|[0-9][125679]|7[01234569])[0-9]{7}$

@Nizomiddin1998
Copy link

Meni taklifim

^+998([- ])?(90|91|93|94|95|98|99|33|97|71)([- ])?(\d{3})([- ])?(\d{2})([- ])?(\d{2})$

+998998887766 +998 99 888 77 66 +998-99-888-77-66 +998 99 888-77-66 va shunga o'xshash O'zbekiston telefon nomerlari uchun

shunda +998 (99) 111-11-11 shaklida ishlatsa bo'ladimi?

@AslDev006
Copy link

the best

@akbarali1
Copy link

Uzbekistan Phone Number

/^+998(90|91|93|94|95|97|98|99|50|88|77|33|20)[0-9]{7}$/

@asror797
Copy link

@abrorbekuz Goooooooooooooooooooooooood

@shkhikmatillayev
Copy link

Mani fikrim shu 55 33 77 88 larga ishledi yana kere raqamla bosa qoshib olsa bo`ldi
πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»
^+998([- ])?(90|91|93|94|95|97|98|99|77|88|33|55)([- ])?(\d{3})([- ])?(\d{2})([- ])?(\d{2})$

@SurriDev
Copy link

raxmat

@islomabdullaev
Copy link

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

^+?998?\s?-?(90|91|93|94|95|98|99|33|97|71)\s?-?(\d{3})\s?-?(\d{2})\s?-?(\d{2})$

XXX-XX-XXX-XX-XX
XXX XX XXX XX XX
XXX XX-XXX-XX XX
...

regex

sign plus doesn't matter +998902641905 998903641905

if u wanna contact me, ↑ :) [ smiley face ]

It didnt work with + sign here I updated your code:
^+?(998|90)?\s?-?(90|91|93|94|95|98|99|33|97|71)\s?-?(\d{3})\s?-?(\d{2})\s?-?(\d{2})$

@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
}
]
]

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