Regular Expressions 101

Library entries

Extract chat conversation

Vote

1

Regular Expression
pcre

/
\[(?<time>(?:[\d]+\:[\d]+:[\d]+)\s+(?:AM|PM))(?:\s+\|\s+\w+\s+(?<edited>(?:[\d]+\:[\d]+:[\d]+)\s+(?:AM|PM)))?\]\s+(?<author>\w+)\:\s+(?<message>[\w\s,.]+)
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago