All the possible regex expressions that can be used on TRTH v2 Historical Criteria Search

Question on behalf of Philipp from B-Next (Philipp.Luedeking@b-next.com)

Regarding Historical Criteria
Search, is there a documentation available what format for the field RIC
pattern is allowed. Our tests show that this filed is not fulfilling the usual
understanding of regular expressions (e.g. the ? operator is not supported,
etc.).

Can you please provide details
what kind of regular expression is expected for this request parameter?

Best Answer

  • Rakesh.Singh
    Answer ✓

    I have worked internally and responded to Philipp with the below details -

    Historical criteria search
    currently supports only the following regular expression patterns:

    • Begin
      with:
      ^ e.g.
      ^IBM
      // Begin with ‘IBM’
    • End
      with:
      $
      e.g.
      =RR$
      // End with ‘=RR’
    • Contain:
      string e.g.
      EUR
      // Contain ‘EUR’

    Noted: ^EUR=$ i.e. equal to
    ‘EUR=’ will also work but it will not be as fast as using “rics” (search by RIC
    list)