Skip to content

Instantly share code, notes, and snippets.

View SafetyDav3's full-sized avatar
:electron:
PTFO

David Williams SafetyDav3

:electron:
PTFO
  • 13:46 (UTC -05:00)
View GitHub Profile
@SafetyDav3
SafetyDav3 / RegExTutorial.md
Last active June 28, 2022 00:34
You Need to Learn RegEx Right Now!

You Need to Learn Regular Expressions Right Now!

This tutorial will cover Regular Expressions more commonly referred to as "RegEx". To me the most interesting aspect of RegEx is that it can be used in all*¹ programming languages. RegEx can be considered a universal language of sorts due to this cross compatibility.
The most common applications for RegEx are Find, replace, and validation of string type data.

Summary

This tutorial of sorts will cover probably the most common use case for RegEx and that's email validation. Below is an example of an email validation Regular Expression.↓

@quonic
quonic / upgrade.js
Last active June 21, 2024 07:25
Birburner Hacknet Node upgrade script. I found and converted this script from .script to .js.
const MoneyFormat = '$0.0a';
const TimeFormat = '00:00:00';
/** @param {import(".").NS } ns */
export async function main(ns) {
/*
ns.hacknet-auto.script for Bitburner v0.47.2
Winners don't use copyright