Regex to the rescue

  • Posted on: 28 July 2016
  • By: h

In Spring Tool Suite, refactoring a package name will look for every possible file name, including hidden files. That usually causes hangups on the file search. 
The solution is to use the following regular expression to skip the files starts with a dot.

^[^.].*$
The regex reads anything that does not start with a period ( . ).