awk regex cheatsheet ==================== . any character, including newline \char escaping special characters * quantity 0-infinity + quantity 1-infinity ? quantity 0-1 {n} quantity n {n,} quantity n-infinity {n,m} quantity n-m (regexp) grouping ^ beginning of pattern $ end of pattern [list] character list [f-t] ranged character list [^list] complemented character list [[:alnum:]] character class [[.ch.]] collating element match [[=e=]] equivalence match r1|r2 alternation (association by largest match) \w word-constituent character \W non-word-constituent character \< beginning of word \> end of word \y beginning or end of word \B not-beginning-or-end of word