ketura wrote:I have recently been dealing with some incredibly long regexes used to manipulate a CSV, so the regexes are set up to group each column as its own group. However, there's a snag as \10 in the replace field is interpreted as group 1, literal 0, rather than the 10th captured group. Upon discovering this limitation, I looked into using named groups with the (?<name>group) syntax. The group appears to be captured (which is to say, the syntax is parsed and the appropriate group is highlighted in the file), but I can't seem to find which syntax is supposed to be used to reference these named groups in the replace field.
I'm at a loss. Are named groups accessible at all within the replace field? Failing that, is there some way to refer to numbered groups larger than \9?
Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 21 guests