PostgreSQL Regex Word Boundaries?
问题 Does PostgreSQL support \\b ? I\'m trying \\bAB\\b but it doesn\'t match anything, whereas (\\W|^)AB(\\W|$) does. These 2 expressions are essentially the same, aren\'t they? 回答1: PostgreSQL uses \m , \M , \y and \Y as word boundaries: \m matches only at the beginning of a word \M matches only at the end of a word \y matches only at the beginning or end of a word \Y matches only at a point that is not the beginning or end of a word See Regular Expression Constraint Escapes in the manual. There