Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
((On|Em)\s+(?:[0-3]?[0-9][\s,\/\.\-]*(?:(?:th)|(?:st)|(?:nd)|(?:rd))?.*?(?:(?:Jan(?:uary)?)|(?:[Jj]an(?:eiro)?)|(?:Feb(?:ruary)?)|(?:[Ff]ev(?:ereiro)?)|(?:Mar(?:ch)?)|(?:[Mm]ar(?:ço)?)|(?:Apr(?:il)?)|(?:[Aa]br(?:il)?)|(?:May)|(?:[Mm]ai(?:o)?)|(?:Jun(?:e)?)|(?:[Jj]un(?:ho)?)|(?:Jul(?:y)?)|(?:[Jj]ul(?:ho)?)|(?:Aug(?:ust)?)|(?:[Aa]go(?:sto)?)|(?:Sep(?:tember)?)|(?:[Ss]et(?:embro)?)|(?:Oct(?:ober)?)|(?:[Oo]ut(?:ubro)?)|(?:Nov(?:ember)?)|(?:[Nn]ov(?:embro)?)|(?:Dec(?:ember)?)|(?:[Dd]ez(?:embro)?)|(?:[0-1]?[0-9])).*(?:[1-2]?[0-9])[0-9][0-9][\s,\/\.\-](?:[0-2])?[0-9]:[0-5][0-9](?::[0-5][0-9])?(?:(?:\s)?[AP]M)?).*(wrote|escreveu):\s+)
/
gs

Description

no description available

Submitted by anonymous - 7 years ago