Skip to content

Instantly share code, notes, and snippets.

View WatheqAlshowaiter's full-sized avatar

Watheq Alshowaiter WatheqAlshowaiter

View GitHub Profile
@WatheqAlshowaiter
WatheqAlshowaiter / BragDoc.md
Last active June 1, 2023 09:29 — forked from muath-ye/BragDoc.md
@WatheqAlshowaiter template for brag document

Brag document / weekly professional journal

Note: I advice you to write every thursday (at the end of the workday week)

week 23 (4 June, 2023)

Courses

@WatheqAlshowaiter
WatheqAlshowaiter / gist:020fa14aa8e3ef6ffb4cfac8307c4397
Created April 28, 2022 10:50 — forked from homaily/gist:8672499
Regex to validate saudi mobile numbers

السلام عليكم ، هذا كود ريجيكس بسيط للتحقق من صحة أرقام الجوالات السعودية ، يقوم الريجيكس بالتحقق من مفتاح الدولة ، مفتاح شركة الإتصالات لضمان صحة النص المدخل .

Hello, this is a simple regex to validate saudi mobile numbers, the code will validate country code, telecome company code and make sure the tested sting is correct .

/^(009665|9665|\+9665|05|5)(5|0|3|6|4|9|1|8|7)([0-9]{7})$/

Regex Breakdown - شرح الكود

const cheerio = require("cheerio");
const { readFileSync, writeFileSync } = require("fs");
const fs = require("fs");
var TurndownService = require("turndown");
const path = require("path");
const years = [
"2009",
"2010",
"2011",