Skip to content

Instantly share code, notes, and snippets.

View Bobslegend61's full-sized avatar

Alabi Akpobome Emmanuel Bobslegend61

  • Lagos, Nigeria
View GitHub Profile
@Bobslegend61
Bobslegend61 / regexCheatsheet.js
Created January 11, 2019 06:30 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@Bobslegend61
Bobslegend61 / docker-help.md
Created August 16, 2018 05:28 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@Bobslegend61
Bobslegend61 / webdev_online_resources.md
Created July 17, 2018 16:24 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)