You are here

public static property DateiCalParse::$regex_loose in Date 8

A regex string that will extract date and time parts from either a datetime string or an iso string, with or without missing date and time values.

File

date_api/lib/Drupal/date_api/DateiCalParse.php, line 111
Parse iCal data.

Class

DateiCalParse
Return an array of iCalendar information from an iCalendar file.

Namespace

Drupal\date_api

Code

public static $regex_loose = '/(\\d{4})-?(\\d{1,2})-?(\\d{1,2})([T\\s]?(\\d{2}):?(\\d{2}):?(\\d{2})?(\\.\\d+)?(Z|[\\+\\-]\\d{2}:?\\d{2})?)?/';