Skip to main content
Completed

Support wildcards in code search

Related products:Software Factory
  • November 4, 2022
  • 5 replies
  • 77 views

Forum|alt.badge.img+4

Hello,

we would like to query all control procedures where there is still ‘hard’ queried on a integer id, like: where production_plant_id = 1

I want to search not only for the production_plant_id fields, but all ‘_id’-fields where %‘_id’ = [0-9]%.

Could we make it possible to use regexes when searching in code search?

5 replies

Jeroen van den Belt
Administrator
Forum|alt.badge.img+10
NewOpen

Jeroen van den Belt
Administrator
Forum|alt.badge.img+10
OpenWorking on it!

Jeroen van den Belt
Administrator
Forum|alt.badge.img+10

It the 2024.2 platform version version it will be possible to use wildcards in a code search. This allows for more complex searches with specified conditions while maintaining flexibility. The possible wildcard options are:

  • %: Matches any string of zero or more characters.
  • _: Matches any single character.
  • [...-...]: Matches any single character within the specified range ([a-f][0-4]) or set ([abcdef][01234])
  • [^...]: Matches any single character not within the specified range ([^a-f][^0-4]) or set ([^abcdef][^01234])

 


Jeroen van den Belt
Administrator
Forum|alt.badge.img+10
Working on it!Next release

Jeroen van den Belt
Administrator
Forum|alt.badge.img+10
Next releaseCompleted