Unix Reqular Expressions Reference
August 7, 2007 – 8:05 pmTip courtesy of Kyle Reynolds at http://www.camelrichard.org Regular Expressions Reference Sheet ----------------------------------- Ctr Definition --- ---------- ^ The pattern has to appear at the beginning of a string. $ The pattern has to appear at the end of a string. . Matches any character. [] Bracket expression. Matches one of any characters enclosed. [^] Negates a bracket expression. Matches one of any characters EXCEPT those enclosed. [-] Range. Matches any characters within the range. ? Preceeding item must match one or zero times. + Preceeding item must match one or more times. * Preceeding item must match zero or more times. () Parentheses. ...