💾 Archived View for tilde.club › ~filip › tech › cheatsheet › regex.gmi captured on 2022-07-16 at 13:45:58. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
+--------------------------+ | ^ | beginning of line | | $ | end of line | | \A | beginning of string | | \Z | end of string | | \< | beginning of word | | \> | end of word | | \b | word boundary | | \B | not word boundary | +--------------------------+
+-----------------------------------+ |. | any character | |(a|b) | character "a" or "b" | |(...) | group | |[abc] | range ("a" or "b" or "c") | |[^abc] | not ("a" or "b" or "c") | +-----------------------------------+
+----------------------+ | \n | new line | | \t | tab | | \r | carriage return | +----------------------+
+-----------------------------------+ | \c | control character | | \s | any whitespace character | | \S | any non-whitespace character | +-----------------------------------+