.. include:: /main/.special.rst Find Using Regular Expressions - Matches Found ############################################### .. include:: /main/deprecation_banner.rst This does the following: * Get devices by hostname that match a regular expression. * This command builds a query for you, example: ``(specific_data.data.hostname == regex("win.*", "i"))`` .. code:: shell $ axonshell devices get-by-hostname \ --value "win.*" \ --value-regex \ --export-file device.json \ --export-overwrite .. raw:: html .. include:: notes.rst .. note:: The ``devices get-by-subnet`` command does not support using regular expressions, so it does not have a --value-regex option.