Skip to content

Instantly share code, notes, and snippets.

View mohammad-kazemzadeh's full-sized avatar
🏢
Busy

Mohammad kazemzadeh mohammad-kazemzadeh

🏢
Busy
View GitHub Profile
@n-ii-ma
n-ii-ma / iranianPhoneRegex.js
Created October 22, 2023 07:04
Regular expression for Iranian phone numbers
// Phone numbers in English/Farsi
export const dynamicNumPhone =
/^(09|۰۹)((0|۰)[\u06F0-\u06F50-5]|(1|۱)[\u06F0-\u06F90-9]|(3|۳)[\u06F0-\u06F90-9]|(2|۲)[\u06F0-\u06F30-3]|(9|۹)[\u06F0-\u06F30-3])[\u06F0-\u06F90-9]{7}$/;
// Phone numbers in English
export const englishNumPhone =
/^09(0[0-5]|1[0-9]|3[0-9]|2[0-3]|9[0-3])[0-9]{7}$/;
// Phone numbers in Farsi
export const farsiNumPhone =
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net