1. Back Reference
Use 1 for the first match.
Example: Replace "(SB)" in string "SA SB SC" with "1X", you will got "SA SBX SC".
Example: Replace "(.*) = (.*);" with "2 = 1;", you will got "txtName.Text = Category.Name;" from "Category.Name = txtName.Text;".
2. New Line
Use
for new line.
Example:
1). Replace "
" in a text block with ", " will join multiple lines into one.
2). Replace "
" in a text block with "");
s.AppendLine("" will wrap each line into s.AppendLine("line content");