search

This block is part of the condition group and was last modified in core v10.4.28.

search v10.4.28

Executes a search for a match between a regular expression and the first value pin.

In pins 2
  • value required
    value

    Value to search in.

  • regexp required
    value

    A regular expression as string.

Out pins 1
  • match
    condition

Regex search, not substring: value_2 is compiled as a JS-flavor regular expression and the output is true when it matches anywhere in value_1 (case-sensitive, unanchored). An invalid pattern outputs false; an empty or missing pattern matches everything (true); nil inputs stringify to "null" before use.

A typical wiring for search: the condition out pin feeds branch.

Studio canvas example for the search block: typical wiring for search.

Version history

Introduced in v10.4.28.


Back to condition Return to the main group to view all sub-groups Back to value Return to the group to view all blocks within this group