Ask a question to get started
Enter to send•Shift+Enter new line
PASTE_PLACEHOLDER_PATTERN = re.compile('\\[Pasted text #(\\d+)(?: \\+(\\d+) lines)?\\]')
Regex matching [Pasted text #N] or [Pasted text #N +M lines].
[Pasted text #N]
[Pasted text #N +M lines]