I scan an html file with this pattern
Code:
pattern="(exp)*(interesting)"
and wish to retrieve the "interesting" part with
Code:
gensub(pattern,"\\1",g)
until I realize that the first parentheses (which are intended to indicate priority) are used for back-reference.
In other regexp implementations there is something like
for grouping-only purposes.
Is there anything for grouping-only parentheses in gawk/awk ?
Or any sugestions if I have to turn to different softwares ?
Thanks in advance!