Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-06-03 19:59
Flavor·PCRE (Legacy)

/
(?:(.*)([FGHJKMNQUVXZ])(\d{1,2})|(.*[^\d])(\d{1,2}))\s(\w*)
/
Open regex in editor

Description

Separates generic and individual bloomberg symbols into 'root', 'month' (or lack of it), 'year' or 'generic contract number' and 'yellow key'

Problem is that matches for root are 1 and 4, can't give them save reference or number. Will update if figure out

Submitted by @TradingMax