12-07-2007, 01:52 PM
We can speak about back references only when using a \number. Phrases in () are called subpatern or capturing subpatern or subexpression.
Back references are particularly useful when removing html or similar tags:
<tag ...>text</tag>
<(\w+).*?>(.*?)</\1>
Back references are particularly useful when removing html or similar tags:
<tag ...>text</tag>
<(\w+).*?>(.*?)</\1>