Test, validate and match regular expressions
This regex parses WhatsApp chat export text, capturing four groups: the date in DD/MM/YYYY format, the time in H:MM or HH:MM form, the sender's name (everything before the colon), and the full message body. It relies on WhatsApp's standard 'date, time - sender: message' layout and uses a lookahead to stop each match at the next message's date or the end of input, so multi-line messages are captured correctly via the dotall flag. Ideal for converting exported chat logs into structured data for analysis or archiving.