Regular Expressions 101

Community Patterns

Train Delays

0

Regular Expression
PCRE (PHP <7.3)

/
^(@[\d\W\w_]{0,50} )?(\d{1,2})[.:](\d{2}) (t?)(\d{4}) ([\w\W ]{3,20})-([\w\W ]{3,20})(express )? (running|departed) (to |on )?(time)?(([\d]{1,3})([ ]?min|[ ]?hr))?( late| behind schedule)?([ ]early)?
/
g

Description

no description available

Submitted by anonymous - 7 years ago