question

Upvotes
Accepted
176 1 0 5

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?

tick-history-rest-apihistorical
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
176 1 0 5

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)

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea