Skip to content

Instantly share code, notes, and snippets.

View Am0031's full-sized avatar

Amelie Pira Am0031

View GitHub Profile

Regex tutorial

This gist explains how to understand the structure of a regex.

What Is a Regex?

A regex, which is short for regular expression, is a sequence of characters that defines a specific search pattern. When included in code or search algorithms, regular expressions can be used to find certain patterns of characters within a string, or to find and replace a character or sequence of characters within a string. They are also frequently used to validate input.

Table of Contents