Skip to content

Instantly share code, notes, and snippets.

View huirayj's full-sized avatar

Justin Hui huirayj

View GitHub Profile
@huirayj
huirayj / regex-tutorial.md
Last active July 3, 2021 23:08
A regex tutorial about searching for an HTML tag

Regex Tutorial: Searching for an HTML tag

What is a Regex?

Regex or Regexp, short for regular expression, is a search pattern, consisting of a specific sequence of characters. Practical application of regex include: checking if newly created usernames, passwords, and/or emails meet a certain criteria, phone number validation, URL validation, searching and replacing text in text editors or word processors, and etc...

Table of Contents