Search⌘ K

Basic Regular Expressions (BRE)

Explore basic regular expressions (BRE) to understand essential metacharacters like dot, brackets, caret, dollar, groups, and quantifiers. Learn how these patterns match and manipulate text in Bash shell, helping you improve your data processing and search skills.

We'll cover the following...

Metachar .

Matches any single character.

Example:

x.z matches "xyz", etc., but within bracket expressions, the dot character matches a literal dot, e.g., [x.y] matches only "x", ".", or "y"

Metachar [ ]

Matches a single character that is contained within the brackets.

Example:

...