0
我讀過sed信息。在「3.3正則表達式語法概述」中。
有一個說明:如何使用數字在sed正則表達式
\digit
Matches the digit-th \(...\) parenthesized subexpression in the regular expression.
This is called a back reference. Subexpressions are implicitly numbered by
counting occurrences of \(left-to-right.
我不知道這意味着什麼。誰能給我一個例子?
另請參閱:[Capture Groups](http://stackoverflow.com/documentation/regex/660/capture-groups#t=201608190817276898192) – Sundeep