Regular Expressions 101

Library entries

activity diary schedule line separated in to groups

Vote

0

Regular Expression
pcre

~
^(?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

Loading markdown...
Submitted by anonymous - 2 years ago