Regular Expressions 101

Community Patterns

activity diary schedule line separated in to groups

0

Regular Expression
PCRE (PHP <7.3)

~
^(?P<name>[a-zA-Z0-9&@\-\.\,\(\)\[\} ]*)[ \t]*(?P<language>[A-Z]{1})[\t ]*(?P<lab_info>\0|[a-zA-Z0-9&@\.\,\(\)\[\} ]*)[ \t]*[-]{0,1}[ \t]*(?P<day>\d{2})\/(?P<month>\d{2})\/(?P<year>\d{4})[,][ \t]*(?P<day_in_words>[a-zA-Z]*)[ \t]*(?P<from>\d{2}[:]\d{2})[ \t]*[-][ \t]*(?P<to>\d{2}[:]\d{2})[ \t]*(?P<center>[a-zA-Z0-9&@\-\.\,\(\)\[\}]*)[ \t]*
~
gm

Description

no description available

Submitted by anonymous - 5 years ago