Querying RTC SCM data with wildcard characters and regular expressions
Trying to fetch only components,baselines matching the searched name pattern in a repository via RTC Plain Java API.
Didn't find any direct API to find components using wildcard character and regular expressions
eg:- [ *_comp ] , *_comp* etc.
Always a code should fetch ānā number of components using methods inside WorkspaceManager and then apply additional logic to filter the searched result.
Is there any other mechanism or data source available using which we can query RTC SCM data to fetch the desired result directly ?.
Didn't find any direct API to find components using wildcard character and regular expressions
eg:- [ *_comp ] , *_comp* etc.
Always a code should fetch ānā number of components using methods inside WorkspaceManager and then apply additional logic to filter the searched result.
Is there any other mechanism or data source available using which we can query RTC SCM data to fetch the desired result directly ?.
Accepted answer
I suggested the % and _ to be tried on pre 601 client. Since you are on 601 you can ignore that comment.
From what you have listed... isn't * and ? working as expected unless I am missing something obvious.
One other answer
Which version of the client SDK are you using?
I believe pre 601 it matched all components starting with the provided name and did not consider wild card characters such as '*' or '?'. Can you try using '%' instead of '*' and '_' instead of '?'.