Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(?'Preamble'.*?)((?'NationalTrack'\d{4})-)?(?'Distance'(?'MetricDistance'(?'KmThousands'[A-Z])?(?'Km'\d{3})(?'Meters'\d{3}))|(?'ImperialDistance'(?'Miles'\d{3})(?'Chains'\d{2})(?'Yards'[0A-V])))(?'LocalTrack'[A-T])(?'Unit'[MK])(\s*\((?'Iteration'\d+)\)\s*)?.SC[NPX0-9]$
/
gm

Description

no description available

Submitted by anonymous - 4 years ago