Instantly share code, notes, and snippets.
Mobile = /^9989[012345789][0-9]{7}$/
All = /^998(9[012345789]|6[125679]|7[01234569])[0-9]{7}$/
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 ... sign plus doesn't matter +998902641905 998903641905 if u wanna contact me, ↑ :) [ smiley face ]
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 ...
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})$
Sorry, something went wrong.
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})$