--- title: "find-substring()" slug: "string-find-substring" updated: 2026-08-17T07:40:29Z published: 2026-08-17T07:40:29Z canonical: "docs.lobstersoftware.com/string-find-substring" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # find-substring() This function returns the index (starting with 1) of the first occurrence of **b** in text **a**, where **c** is the start position (starting at 1) from which the search is started. ## Parameters | Parameter | Description | | --- | --- | | a | Text. | | b | Search text. | | c | (optional) Start position of the search (starting with 1). Default: 1. | ## Examples | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | abcabc | c | | 3 | | abcabc | c | 4 | 6 | | abcabc | a | 1 | 1 | | abcabc | d | | 0 |