Pinned Loading
-
-
Navigating Regular Expressions
Navigating Regular Expressions 1# Navigating Regular Expressions
2A regular expression is a string of characters that defines a search parameter within text. They can include literal characters (specific characters which are also case sensitive) and meta characters which allow for a variety of expressions and operators. This gist intends to demystify these arcane jumbles and break down the patterns within. Hopefully, when you're done reading this you will know how to decipher the example regular expression and even be able to write your own!
3## Our Expression
4<pre>/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/</pre>
5The above regular expression (regex) matches any emails within a body of text. Expressions like this one work in a majority of text editors and with nearly every coding language. The components of this expression are broken down for clarity in the sections below.
-
Mac Battery Logger
Mac Battery Logger 1# BatteryLogger
2This useful Logger can record by minute your mac's current charging state and battery level. The executable is easy to install and uninstall and leaves no extra files behind when removed.
3## Installer
4<pre>#!/bin/zsh
5# This script logs the battery status to a file
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.