A copied email reply can have an extra layer of > markers on every quoted line. Removing all of them makes the excerpt easier to read, but can also flatten an older reply into the surrounding message. For a working copy, remove one outer level and keep the remaining nested material identifiable.
This procedure uses selected plain text in Find and Replace Text. Keep the original message separately so you can check its wording and context.
Decide which quote layer belongs to your excerpt
In a simple copied reply, a line beginning with > may be quoted once, while >> may indicate an older nested quotation. The quotation rules in RFC 3676 formally use consecutive leading greater-than characters for quote depth in Format=Flowed text.
That does not make every greater-than sign in arbitrary text a quote marker. This edit assumes you have identified the leading markers in a copied excerpt. It is not a parser for raw message source, MIME encoding, HTML email or the wrapping rules of Format=Flowed.
Work only on the relevant passage. Exclude code, indented examples and unrelated quoted material unless you have checked what those initial characters mean.
Test one outer level with a nested line
Paste this fictional excerpt into Your text, without an extra final newline:
> Please bring a notebook.
>
>> Earlier note: seats are limited.
> The check is 5 > 3.
Unquoted footer.
Four lines have an outer marker. The second line is a quoted blank line, the third retains an older quotation, and the comparison inside the fourth line is ordinary content.
- Enable Use regular expression and Replace all.
- Leave Whole word only off. Match case does not affect this pattern.
- Enter the following in Find, using single backslashes and no surrounding slashes:
(^|\r?\n)> ?
In Replace with, enter:
$1
Select Replace. For this input, expect 4 Replacements made, 103 Characters before and 97 Characters after. The result is:
Please bring a notebook.
> Earlier note: seats are limited.
The check is 5 > 3.
Unquoted footer.
The quoted blank line became a blank line. The nested quotation still has one marker, and 5 > 3 stayed intact. The unquoted footer was not changed. The tool leaves the input in place and shows the edited version separately.
Understand why the nested marker survives
The opening group (^|\r?\n) selects the start of the input or a stored line break. It captures that boundary, and $1 puts it back. MDN explains numbered captured-text replacements in its String.replace reference; the current tool implements the token used here.
The rest matches exactly one > and at most one following ordinary space. On a line beginning >>, the second marker is not part of that match. This is why the older reply keeps a visible quote level.
The site has no multiline-flag control. A caret by itself would select only the start of the entire input here; the explicit line-break alternative reaches later lines. See the MDN input-boundary reference for this distinction.
Review spacing instead of removing every prefix
After a marker followed by two spaces, one space remains. A tab after the marker remains too. This preserves more of the following text than a broad whitespace-removal expression would. It does not infer indentation rules for your source.
A line beginning with spaces before its marker, such as > indented example, is unchanged. If expected lines remain quoted, inspect their actual beginnings before broadening the pattern. The tool cannot decide whether an unusual prefix is mail formatting or part of the content.
Do not copy the result back into the input and repeat the operation automatically. In our sample, a second pass removes the one remaining marker from the earlier note. That would erase the distinction this one-level edit was designed to keep.
Keep the source context with the cleaned copy
Compare the first quoted line, the blank line and the nested reply against the original. Check a greater-than sign inside a sentence too. For a longer excerpt, follow the draft comparison workflow to review the change.
Then copy the approved result into its destination and verify the paragraph breaks there. Keep the author and message context with your working notes. Removing an outer formatting layer does not establish who wrote each nested passage or resolve the meaning of a conversation.