Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Python

r"
\[(?P<a>[0-9]*)\/(?P<b>[0-9]*-[0-9]*)@g.us\((?P<c>(?:[0-9]{2}\-){2}2015) [0-9]{2}:[0-9]{2}\)\]:\[(?P<d>[A-Z0-9a-z]{13}|.*)\](?P<e>.*)\nMessage (?P=d): Sent delivered receipt\n\[connected]:
"
g

Description

This pattern parses the yowsup-cli message output to recover (otherwise lost) messages.

Current yowsup version: v2.4

Submitted by kerel - 9 years ago