question

Upvotes
Accepted
176 3 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 512.0 KiB each and 1.0 MiB total.

Asked expert Troy Dalldorf.

1 Answer

· Write an Answer
Upvote
Accepted
176 3 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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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