Regular Expressions Substitutions with Regular Expressions

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Parameters

InlineDescription
$numberSubstitutes the substring matched by group number.
${name}Substitutes the substring matched by a named group name.
$$Escaped '$' character in the result (replacement) string.
$& ($0)Replaces with the whole matched string.
$+ ($&)Substitutes the matched text to the last group captured.
$`Substitutes all the matched text with every non-matched text before the match.
$'Substitutes all the matched text with every non-matched text after the match.
$_Substitutes all the matched text to the entire string.
Note:Italic terms means the strings are volatile (May vary depending on your regex flavor).


Got any Regular Expressions Question?