# tf.contrib.graph_editor.make_regex

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/graph_editor/select.py#L62-L78) |

Return a compiled regular expression.

    tf.contrib.graph_editor.make_regex(
        obj
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `obj` | a string or a regular expression. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A compiled regular expression. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if obj could not be converted to a regular expression. |

<br />