PREV UP next Regex

3.9: Anchoring Operators

These operators can constrain a pattern to match only at the beginning or end of the entire string or at the beginning or end of a line.

  • Match-beginning-of-line Operator ^
  • Match-end-of-line Operator $