Substring search using CMATCH or any other technique

Hi, everybody.

We have text (less than 4000 symbols) that has to be parsed to sentences ( searching for ". "). We search for string variables from the given set. We have to correspond to each sentence number of string variables occurencies.

It’s subtask of my research and it’s very important to accomplish it using CMATCH.

But my Cuda skills are very low and it’s a real problem to solve it exactly the way it should be solved.

Any help will be appreciated. The general question is how to search for substring in a string using CMATCH?

p.s. though desirble way is to make it using CMATCH, any other ways of searching substring in a string jn Cuda that, may be, better suit this concrete problem will also be appreciated :)