Regular Expressions 101

Community Patterns

Skype ConversationText Extraction

4

Regular Expression
PCRE (PHP <7.3)

/
((\[\d+:\d+:\d+ \w+\][\w ]+:)|(\[\d+:\d+:\d+ \w+ \| \w+ \d+:\d+:\d+ \w+\][\w ]+:))([ \w'.,]+)
/
g

Description

When you copy a skype conversation and paste it in a text area then it includes timestamps, User's name and whether or not the message had been edited. This matches all of those in seperate groups for easy substitution

Submitted by Zalatos - 8 years ago