Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Explain the replace operator's substitute-string syntax briefly and link to the relevant .NET help topic #5415
Substitutions in Regular Expressions describes the syntax of the placeholder tokens you can use in
While documenting all such placeholders is beyond the scope of the topic, I suggest:
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
That reference is already linked to in the About_Regular_Expressions article. The about_Comparison_operators article is linked to about_Regular_Expressions. The operators article is not the place to get into the topic of regular expressions.
This is a duplicate of #4417
I now see that https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_regular_expressions?view=powershell-7#substitutions-in-regular-expressions contains the relevant information including the desired link, which is great.
However, that I missed this fact is no accident (and it sounds like I'm not the first person to do so) - please see #5416.