> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SEARCH

> The SEARCH function finds the position of a target substring within a source text. It supports multiple YiDA scenarios such as forms and workflow design, with detailed format, attribute descriptions, and usage examples.

The **SEARCH** function finds the position of a target substring within a source text. It returns 0 if no match is found.

## Supported Scenarios

The SEARCH function is supported in the following YiDA scenarios.

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (association actions)
* Integration & automation
* Workflow node
* Connector

## Format

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
SEARCH(findtext,withintext,start_num)
```

## Attributes

| **Attribute** | **Required** | **Description**                                   |
| ------------- | ------------ | ------------------------------------------------- |
| findtext      | Yes          | The target substring to search for.               |
| withintext    | Yes          | The source text to be searched.                   |
| start\_num    | No           | The starting position of the search. Number type. |

## Return Value

| **Return type** | **Description**                                                                                |
| --------------- | ---------------------------------------------------------------------------------------------- |
| Text            | The starting position of the substring within the source text. Returns 0 if no match is found. |

## Example

The formula in the following figure returns: `3`.

## Try It Out

Find the position of the content in **Single-line text 1** within **Single-line text 2**.
