Support wildcards in code search

Related products: Software Factory

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?

NewOpen

OpenWorking on it!

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])

 


Working on it!Next release