Regular Expressions 101

  • PCRE (Legacy)
  • Match
0

Regular Expression

/
^(?'commodity'02)_(?'market'\w{3,})_(?'tenortype'M)(?'offset'[1-9][0-9]?)?_(?'derivative'PHY|FUT) (?'period'M)-(?'year'\d{4})-\b(?'month'0[1-9]|1[0-2])\b$
/
gm

Description

handles atomic and combined tenor

Submitted by Anonymous