- 论坛徽章:
- 8
|
本帖最后由 waker 于 2011-10-14 16:31 编辑
There are two other operators that work on buffers. In Emacs, a buffer is, naturally, an Emacs buffer. For other programs, gawk's regexp library routines consider the entire string to match as the buffer. The operators are:
\`
Matches the empty string at the beginning of a buffer (string).
\'
Matches the empty string at the end of a buffer (string).
Because ‘^’ and ‘$’ always work in terms of the beginning and end of strings, these operators don't add any new capabilities for awk. They are provided for compatibility with other GNU software. |
|