Alright Peaches Studio的其它软件和游戏:
在本2.8.0.0版本中,使用 &&& 批量查找和替换
查找、替换和全部替换现在支持使用 &&& 分隔多组相互对应的内容。
例如:
程序会把第一组和第一组对应、第二组和第二组对应:
查找
点击“查找下一个”时,程序会在当前位置之后查找所有由 &&& 分隔的项目,并停留在最先出现的匹配项上。
如果后面没有匹配项,程序会从文本开头继续查找。
替换
点击“替换”时:
- 如果当前已经选中了一个匹配项,则替换该匹配项。
- 如果当前没有选中匹配项,则查找并替换接下来最先出现的一项。
- 每个查找项只使用与它位置对应的替换项。
全部替换
点击“全部替换”时,程序会替换全文中的所有对应内容。
所有规则均以原文为基础同时处理,因此前一组产生的替换结果不会被后一组再次替换。
使用空替换项删除内容
为了清楚显示,下面使用 ␠ 表示一个真正的空格。实际输入时不要输入 ␠ 字符,而是在查找框最前面按一次空格键。
例如:
实际的查找框内容是“一个空格”,然后紧接着输入 &&&111。
这两组规则分别是:
例如原文:
ABC 111 DEF
全部替换后变为:
ABCddDEF
其中两个空格分别变成了 d,而 111 被删除。
使用注意事项
- 查找项和替换项必须按照相同顺序一一对应。
- 查找项和替换项数量不同时,程序会停止操作并显示提示。
- 查找项不能为空。
- 替换项可以为空,空替换项表示删除对应内容。
- 如果整个替换框为空,所有查找到的项目都会被删除。
&&& 是专用分隔符,会被程序理解为多组内容之间的分界。
Other Software and Games from Alright Peaches Studio:
In this 2.8.0.0 Ver., Using &&& for Multiple Find and Replace Rules
Find, Replace, and Replace All now support multiple corresponding items separated by &&&.
For example:
- Find:
cat&&&111
- Replace with:
dog&&&000
The items are paired according to their positions:
Find
When you click “Find next,” the program searches for every item separated by &&& and selects whichever matching item appears first after the current position.
If no match remains after the current position, the search continues from the beginning of the text.
Replace
When you click “Replace”:
- If a valid match is currently selected, that match is replaced.
- If no valid match is selected, the program finds and replaces the next earliest match.
- Each find item uses the replacement item in the corresponding position.
Replace All
When you click “Replace all,” every occurrence of every corresponding item is replaced throughout the text.
All rules are applied to the original text simultaneously. A result produced by one rule will therefore not be processed again by another rule.
Deleting Text with an Empty Replacement
In the example below, ␠ visually represents one real space. Do not type the ␠ character. Instead, press the Space key once at the beginning of the Find box.
For example:
- Find:
␠&&&111
- Replace with:
d&&&
The actual Find value begins with one space, followed immediately by &&&111.
These entries create two rules:
- Space →
d
111 → empty text, which deletes 111
For example, this text:
ABC 111 DEF
becomes:
ABCddDEF
Both spaces are changed to d, while 111 is deleted.
Important Notes
- Find and replacement items must correspond in the same order.
- The number of find and replacement items must be the same.
- Find items cannot be empty.
- Replacement items may be empty. An empty replacement deletes the corresponding text.
- If the entire Replace box is empty, every matched item is deleted.
&&& is a reserved separator used to divide multiple items.