My answer here might solve your problem as well:
https://stackoverflow.com/a/27967674/543814
$1
, you would read group $2
.$2
was made non-capturing there, which you would avoid.Example:
Regex.Match("50% of 50% is 25%", "(\d+\%)|(.+?)");
The first capturing group specifies the pattern that you wish to avoid. The last capturing group captures everything else. Simply read out that group, $2
.