"contains" with multiple conditions

Returns logical true for the elements of a string array that contain a set of substrings combined by boolean operators.

Download
Download

You are now following this Submission

Cite As

Yasir (2026). "contains" with multiple conditions (https://nl.mathworks.com/matlabcentral/fileexchange/154925-contains-with-multiple-conditions), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: String Toolkits, structfind, mgrep, strfind for datasets

General Information

MATLAB Release Compatibility

  • Compatible with R2020b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.5

Changed title.

Download
1.1.4

Renamed.

Download
1.1.3

Renamed.

Download
1.1.2

Renamed.

Download
1.1.1

Accepts "susbtring" as an array of multiple strings. Individual strings will be combined by the OR operator.

Download
1.1.0

Download