Is it possible to use the .net Regex class to do a replace on a specific capture group.
for example
<customer.*?(display="(?:yes|no)")?.*?>
I want to match on the Customer xml element but replace within the display attribute capture group. i think that would be group 1, but i could always name this.
I think you’ll need to capture the stuff that comes before and after the display attribute.
You can then use that in your replace lambda