Regular Expressions 101

Community Patterns

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

0

Regular Expression
PCRE2 (PHP >=7.3)

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

Description

Before

I recommend XMind 8 and not the newer XMind Zen (I have not tried XMind 2021). It is available here: xmind.net/download/xmind8 (edited) 
:heavy_plus_sign:
1





5 replies
Last reply 24 hours agoView thread






Paul Holland  1:49 AM
If you need to convert to a PDF - you do not need to pay for the Pro version. On a Mac just print to a PDF. On a Windows machine use an app that lets you print to a PDF.
:point_up_2:
1


After

I recommend XMind 8 and not the newer XMind Zen (I have not tried XMind 2021). It is available here: xmind.net/download/xmind8 (edited) 
If you need to convert to a PDF - you do not need to pay for the Pro version. On a Mac just print to a PDF. On a Windows machine use an app that lets you print to a PDF.

Submitted by Maksim Zinovev - 3 years ago