contains

checks if string contains with pattern.

📝 Syntax

  • tf = contains(str, pattern)

  • tf = contains(str, pattern,'IgnoreCase', true)

  • tf = contains(str, pattern,'IgnoreCase', false)

📥 Input argument

  • str - a string, string array or cell of strings.

  • pattern - a string to find.

📤 Output argument

  • tf - a matrix of logical.

📄 Description

contains returns true if str containspattern.

💡 Example

🔗 See also

startsWith, endsWith.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?