In File: sdk/editormanager.cpp
In Function: int EditorManager::ReplaceInFiles(cbFindReplaceData* data)
From:
fileContents = cbReadFileContents(file, def_encoding);
if (fileContents.Find(data->findText) == -1)
{
continue;
}
To:
fileContents = cbReadFileContents(file, def_encoding);
if(!data->regEx)
{
if (fileContents.Find(data->findText) == -1)
{
continue;
}
}else if( AdvRegex && re.Matches(fileContents)==0)
{
continue;
}
When I want to do "Replace in files" with options: "Regular expression" and scope "Projects files" or "Workspace files"
In closed files does not result.
Because:
fileContents.Find(data->findText) == -1
with "RegExp" can produce results "true"