Just a note of caution here and note for whomever is maintaining Janitor now.
functions.php, line 726-727:
$searchString = '/' . $searchString . '/i';
$searchFieldStringReplaced=preg_replace($searchString, $replaceString, $searchFieldString);
Even if you're not
searching with Regex, the
replace is using Regex.
I did a search for "../assets/images". It found all of the resources with that string. On replacing with "assets/images/books" (or something similar) it uses Regex. The result (somehow?) was that the entire content of all of the selected resources was deleted. An error was returned on line 727, I think about 'a' being an invalid operand. (The error wasn't logged.)
Bottom line, backup before using that feature - or avoid using it.
Loved ModX when I was using it a few years ago. Shifted to WordPress, sorry. Thanks, all.