Altium NEXUS Documentation

Find-Replace Text

Modified by Susan Riege on Jul 16, 2018
此文档页面引用了不再受支持的产品 Altium Vault, Altium Vault 及其组件管理功能已迁移到 Altium Concord Pro

   The two variations and tabs of the Find-Replace Text dialog 

Summary

The Find-Replace Text dialog is used to quickly find and replace text in a text document. The Find Text dialog is used only to find text; the Replace Text dialog is used to find then replace text. This can save you from having to constantly scroll up or down to find text and is particularly useful when developing and debugging macro scripts.

Access

The dialog is accessed in the following ways:

  • The Find Text dialog is accessed by clicking Edit » Find from the main menus within a text document.
  • The Replace Text dialog is accessed by clicking Edit » Replace within a text document.

Options/Controls

Find/Replace Text Tab

  • Text to find - enter the string of text to find in the document or use the drop-down to select the string from previous searches.
  • Replace with - enter the string of text to replace the found text with or use the drop-down to select the replacement string from previous replacement strings. This command is available only in the Replace Text dialog.
  • Options 
    • Case sensitive - check to perform the search paying attention to the case.
    • Whole words only - check to find only whole words.
    • Regular expressions - check to search using regular expressions.
      • ^ - only match when the string is at the start of a line.​
      • $ - only match when the string is at the end of a line.
      • . - indicates any single character (e.g., "te.t" matches "test", "text", and "tent", but not "tet").
      • - indicates any set of characters, including no characters (e.g., "te*" matches "text", "tent", and "te", but not "t").
      • + - indicates any set of characters, except no characters (e.g., "te+" matches "text", and "tent", but not "te").
      • [ ] - find any of the characters enclosed in the brackets.
      • [^] - a caret at the start of a string in brackets means NOT (e.g., "[^tes]" matches any characters except t, e, or s).
      • [-] - a hyphen within a string in brackets signifies a range of characters (e.g., "[l-o]" matches the characters l, m, n, and o).
      • { } - used to group characters or expressions. Groups can be nested with a maximum number of 10 groups in a single pattern.
      • - a backslash before a wildcard character tells the Text Editor to treat that character literally, not as a wildcard (e.g., "\^test" does not look for the string test at the start of a line; it looks for the string "^test").
  • Prompt on replace - check to be prompted before replacement occurs. This command is available only in the Replace Text dialog.
  • Search hidden text - check to include hidden text in the search.
  • Wrap search - check to wrap the search string. This command is available only in the Find Text dialog.
  • Direction - use these selections in conjunction with the Origin options to determine from where and how the text is searched..
    • Forward - select to perform the search forward from the cursor.
    • Backward -select to perform the search backward from the cursor.
  • Scope
    • Global - select to search the entire document.
    • Selected text - select to only search currently selected text.
  • Origin - use these selections in conjunction with the Direction options to determine from where and how the text is searched.
    • From cursor - select to begin the search from the cursor location.
    • Entire scope - select to perform the search of the entire document.

Find in Files/Replace in Files Tab

  • Text to find - enter the string of text to find in the document or use the drop-down to select the string from previous searches.
  • Replace with - enter the string of text to replace the found text with or use the drop-down to select the replacement string from previous replacement strings. This command is available only in the Replace Text dialog.
  • Options 
    • Case sensitive - check to perform the search paying attention to the case.
    • Whole words only - check to find only whole words.
    • Regular expressions - check to search using regular expressions. Valid regular expressions include the following:
      • ^ - only match when the string is at the start of a line.​
      • $ - only match when the string is at the end of a line.
      • . - indicates any single character (e.g., "te.t" matches "test", "text", and "tent", but not "tet").
      • - indicates any set of characters, including no characters (e.g., "te*" matches "text", "tent", and "te", but not "t").
      • + - indicates any set of characters, except no characters (e.g., "te+" matches "text" and "tent", but not "te").
      • [ ] - find any of the characters enclosed in the brackets.
      • [^] - a caret at the start of a string in brackets means NOT (e.g., "[^tes]" matches any characters except t, e, or s).
      • [-] - a hyphen within a string in brackets signifies a range of characters (e.g., "[l-o]" matches the characters l, m, n, and o).
      • { } - used to group characters or expressions. Groups can be nested with a maximum number of 10 groups in a single pattern.
      • - a backslash before a wildcard character tells the Text Editor to treat that character literally, not as a wildcard (e.g., "\^test" does not look for the string "test" at the start of a line; it looks for the string "^test").
  • Prompt on replace - check to be prompted before replacement occurs. This command is available only in the Replace Text dialog.
  • Search hidden text - check to include hidden text in the search.
  • Where
    • Search all files in project - select to search within all files in the current project.
    • Search all open files - select to search within all open files.
    • Search in directories - select to search within directories.
    • Open changed files in editor - select to open changed files.
  • Search Directory Options 
    • File Mask -​ click the Browse button to open a dialog to select the desired folder to search.
      • Include subdirectories - check to include subdirectories in the search.

Additional Controls

  • Replace All - click to replace all found strings with the text entered in the Replace with textbox. This command is available only in the Replace Text dialog.
Found an issue with this document? Highlight the area, then use Ctrl+Enter to report it.

联系我们

联系原厂或当地办公室

We're sorry to hear the article wasn't helpful to you.
Could you take a moment to tell us why?
You are reporting an issue with the following selected text
and/or image within the active document:
Altium Designer 免费试用
Altium Designer Free Trial
我们开始吧!首先,您或者您的公司已经在使用Altium Designer了吗?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

既然您在使用Altium Designer,为何仍需要试用?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

好的,实际上您无需下载一个试用版本。

点击下方按钮下载最新版本的Altium Designer安装包

下载Altium Designer 安装包

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

填写下方表格,获取Altium Designer最新报价。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

如果您是Altium维保期内客户,您不需要下载试用版本。

如果您不是Altium维保客户,请填写下方表格免费试用。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

您为何想要试用Altium Designer?

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

那您来对地方了!请填写下方表格申请试用吧。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

Great News!

Valid students can get their very own 6-month Altium Designer Student License for FREE! Just fill out the form below to request your Student License today.

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

好的,您可以下载免费的Altium Designer Viewer查看文档,有效期6个月。

请填写下方表格申请。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。

好棒!创作是一件超酷的事情,我们可以为您提供完美的设计软件。

Upverter是一个社区导向的交流平台,专为您这样的创客量身定做。

点击这里看看吧!

如果您有任何需求,请点击这里联系获取当地办公室销售代表联系方式。.
Copyright © 2019 Altium Limited

好的,您可以下载免费的Altium Designer Viewer查看文档,有效期6个月。

请填写下方表格申请。

点击[获取免费试用],并同意我们的隐私政策。您会接收到来自Altium的资讯,并允许其改变您的通知首选项。