# xarray.core.accessor_str.StringAccessor.isalnum

#### StringAccessor.isalnum()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L865-L887)

Check whether all characters in each string are alphanumeric.

* **Returns:**
  **isalnum** ([array](https://numpy.org/doc/stable/glossary.html#term-array) of [`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – Array of boolean values with the same shape as the original array.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('f66a263d-8755-400a-b895-756b376690de','27c4b407-33f2-482c-a875-09d0ab1b25b9','984b029d-ea10-4891-9ef2-26a007b6a528','../lite/tree/../notebooks/index.html?path=3a7e18cf_749a_45d5_9853_b9147c9ed286.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["H2O", "NaCl-"], dims="x")
>>> da
<xarray.DataArray (x: 2)> Size: 40B
array(['H2O', 'NaCl-'], dtype='<U5')
Dimensions without coordinates: x
>>> isalnum = da.str.isalnum()
>>> isalnum
<xarray.DataArray (x: 2)> Size: 2B
array([ True, False])
Dimensions without coordinates: x
```

<div id="984b029d-ea10-4891-9ef2-26a007b6a528" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('f66a263d-8755-400a-b895-756b376690de','984b029d-ea10-4891-9ef2-26a007b6a528')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('f66a263d-8755-400a-b895-756b376690de','984b029d-ea10-4891-9ef2-26a007b6a528')">Open In Tab</button></div><div id="27c4b407-33f2-482c-a875-09d0ab1b25b9" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
