Home  >  Article  >  Technology peripherals  >  how to use wildcards in comfyui

how to use wildcards in comfyui

Patricia Arquette
Patricia ArquetteOriginal
2024-09-02 17:09:37681browse

This article introduces the usage of wildcards in ComfyUI, a powerful tool for string matching. It discusses the different wildcard operators supported by ComfyUI, including % for matching any number of characters, %? for matching any single characte

how to use wildcards in comfyui

How to Use Wildcards in ComfyUI

Wildcards are a powerful tool for matching strings and can be used in various parts of ComfyUI, such as data binding, filtering, conditional styling, and more. To use wildcards, enclose the pattern in % signs. For example, % matches any number of characters, while %a matches any string that starts with "a".

Wildcard Operations Work in ComfyUI

ComfyUI supports the following wildcard operations:

  • %*: Matches any number of characters
  • %?: Matches any single character
  • [!character]: Negates a character or set of characters

These operators can be combined to create more complex patterns. For example, %a?b% matches any string that contains the letter "a" followed by any single character, followed by the letter "b".

Which Wildcard Characters Are Supported by ComfyUI?

ComfyUI supports the following wildcard characters:

  • %: Matches any number of characters
  • %?: Matches any single character
  • [!character]: Negates a character or set of characters
  • 1: Negates a character or set of characters (same as [!character])
  • **: Escapes the next character

How to Customize Wildcard Behavior in ComfyUI

To customize the wildcard behavior in ComfyUI, use the following settings:

<code class="typescript">// Disable wildcards
ComfyUI.disableWildcards = true;

// Set the default wildcard character
ComfyUI.wildcardChar = '%';</code>

  1. character

The above is the detailed content of how to use wildcards in comfyui. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn