Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
findrx, back referencing, and variable assignment
#4
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>


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)