Introductory paragraph (replace this with your text)
Briefly summarize the regex you will be describing and what you will explain. Include a code snippet of the regex. Replace this text with your summary.
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.
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.↓
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 | |
Use the universal one-liner in terminal in the project directory: | |
``` touch .gitignore && echo "node_modules/" >> .gitignore && git rm -r --cached node_modules ; git status ``` | |
It works no matter if you've created a .gitignore or not, no matter if you've added node_modules to git tracking or not. | |
Then commit and push the .gitignore changes. | |
Explanation |