xarray.DataArray.str.match

DataArray.str.match(pat, case=True, flags=0)

Determine if each string in the array matches a regular expression.

Parameters
  • pat (str) – Character sequence or regular expression

  • case (bool, default: True) – If True, case sensitive

  • flags (int, default: 0) – re module flags, e.g. re.IGNORECASE. 0 means no flags

Returns

matched

Return type

array of bool