--- title: "count-substring()" slug: "string-count-substring" updated: 2025-11-13T06:54:14Z published: 2025-11-14T02:46:29Z canonical: "docs.lobstersoftware.com/string-count-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. # count-substring() Liefert die Anzahl der Vorkommen von Suchtext **b** in Text **a** zurück. ## Parameter | Parameter | Beschreibung | | --- | --- | | a | Text. | | b | Suchtext. | ## Beispiele | Parameter a | Parameter b | Ergebnis | | --- | --- | --- | | abcdecfgc | c | 3 | | abcdecfgc | abc | 1 | | abcdecfgc | x | 0 |