hugo/docs/content/en/functions/strings.ContainsAny.md
2023-05-22 16:47:07 +02:00

17 lines
449 B
Markdown

---
title: strings.ContainsAny
description: Reports whether a string contains any character from a given string.
categories: [functions]
menu:
docs:
parent: functions
keywords: [string strings substring contains any]
signature: ["strings.ContainsAny STRING CHARACTERS"]
relatedfuncs: [strings.Contains]
---
{{ strings.ContainsAny "Hugo" "gm" }} → true
The check is case sensitive:
{{ strings.ContainsAny "Hugo" "Gm" }} → false