Text Search

AnyLogic allows searching for text in the workbench. 

To search the text 

  1. Open the Search dialog box by clicking the  Search toolbar button.

The Search dialog

  1. Type the expression for which you wish to do the text search in the Containing Text box. From the drop-down menu, you can choose to repeat or modify a recent search. When entering text, you can use wildcards for search expressions displayed in the search dialog:
    "*" matches any set of characters, including the empty string
    "?" matches for any character
    "\" is the escape for a literal; if you want to search for an asterisk, question mark, or backslash character, type a backslash before it to indicate that you are not using these characters as wildcards (e.g., "\*", "\?", or "\\")
  2. Turn the Case Sensitive option on if you want the text search to be case sensitive.
  3. Turn the Regular Expression option on if you want to specify a pattern facet. A pattern facet can be used to constrain the value of a lexical space (the set of string literals that represent the values), which indirectly constrains the value space. The value of the pattern is called a regular expression. For more information on pattern syntax, please refer to java.util.regex.Pattern class documentation.
  4. Choose the scope of your search using the Scope radio buttons. You can either search through the whole workspace (Workspace option), or previously selected model element only (Selection option). In case you search through the selection, the search is done through all branches of the workspace subtree starting from the selection point.
  5. Click Search to finish. The search results will be displayed in the Search view.