So, if you are renaming the directory / foo to / bar, you want to replace the string / foo with / bar in every path that starts with / foo /. 因此,如果您将目录/foo重命名为/bar,那么在以/foo/开头的每条路径中,都要使用/bar替代字符串/foo。
Replace the string in the middle with your variable. 用变量替换中间的字符串。
Choose this button to replace all instances of the find what string with the replace with string, in all files within the look in scope. 选择此按钮可以在“查找范围”范围的所有文件中用“替换为”字符串替换“查找内容”字符串的所有实例。
To include regular expressions in the replace with string, click the use check box under find options and select the regular expressions option. 若要在“替换为”字符串中包括正则表达式,请单击“查找选项”下的“使用”复选框,然后选择“正则表达式”选项。
CurrPerson / @ name tells the engine to replace that string with the name attribute of the currPerson node, which is a variable defined in the iterate tag. $currPerson/@name告诉引擎用currPerson节点(是定义在iterate标签中的变量)的name属性来代替其字符串。