Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(BEGIN:VEVENT.*DTSTAMP:(\d{8}T\d{6}Z).*DTSTART:(\d{8}T\d{6}Z).*DTEND:(\d{8}T\d{6}Z).*SUMMARY:(.*)LOCATION:(.*)DESCRIPTION:(.*)UID:(.*)CREATED:(\d{8}T\d{6}Z).*LAST-MODIFIED:(\d{8}T\d{6}Z).*SEQUENCE:(\d{10}).*END:VEVENT)
/
Uxgs

Description

Regex able to parse iCal to fetch, for example, the schedule of students.

Submitted by anonymous - 5 years ago