/regex

Primary LanguageShell

^

$

. -> (decimal point) matches any single character except the newline character

[xyz]

Character set. This pattern type matches any one of the characters in the brackets

  • [0-9a-fA-F]

[^...]

  • [^1-6] -> A negated or complemented character set

x|y

  • Matches either 'x' or 'y'

x?

  • matches the preceding item of 0 or 1 time