code: private void searchProperties(List<CmsResource> resources) {
  
          if (CmsSourceSearchForm.REGEX_ALL.equals(m_settings.getSearchpattern())) {
              for (CmsResource resource : resources) {
                  m_matchedResources.add(resource);
                  getReport().println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_MATCHED_0),
                      I_CmsReport.FORMAT_OK);
              }
  
          } else {
              for (CmsResource resource : resources) {
                  Matcher matcher;
                  try {
                      CmsProperty prop = getCms().readPropertyObject(resource, m_settings.getProperty().getName(), false);
                      matcher = Pattern.compile(m_settings.getSearchpattern()).matcher(prop.getValue());
                      if (matcher.find()) {
                          m_matchedResources.add(resource);
                          getReport().println(
                              Messages.get().container(Messages.RPT_SOURCESEARCH_MATCHED_0),
                              I_CmsReport.FORMAT_OK);
                      } else {
                          getReport().println(
                              Messages.get().container(Messages.RPT_SOURCESEARCH_NOT_MATCHED_0),
                              I_CmsReport.FORMAT_NOTE);
                      }
  
                  } catch (CmsException e) {
                      LOG.error("Ubable to read property", e);
                  }
              }
          }
          if (m_replace) {
              replaceProperties(m_matchedResources);
          }
          // report results
          reportResults(resources.size());
      }
docs: Search and replace function for properties.<p>
  
  @param resources to be considered