Regular Expressions 101

Library entries

Replace line breaks and lines like "James 5:00 PM" to clean up messages copied from slack (iPFAnO/2)

Vote

0

Regular Expression
pcre2

/
^.*?:\d\d.*?\n+|^\n+$|^.*?replies.*?\n+|^.*?\d\n+|^.*?:\n+|^Last reply.*?\n+
/
gm

Description

Loading markdown...
Submitted by Maksim Zinovev - 8 days ago