# tensorflow::ops::RegexReplace::Attrs Struct Reference

# tensorflow::
ops::
RegexReplace::
Attrs

`
#include <string_ops.h>
`


Optional attribute setters for
[RegexReplace](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/regex-replace#classtensorflow_1_1ops_1_1_regex_replace)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/regex-replace/attrs#structtensorflow_1_1ops_1_1_regex_replace_1_1_attrs_1a5af07627be1e5135a19c9447eed1b91d = true ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/regex-replace/attrs#structtensorflow_1_1ops_1_1_regex_replace_1_1_attrs_1a9d0355cf5575240f3f5f4f053ad64bd1 (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/regex-replace/attrs#structtensorflow_1_1ops_1_1_regex_replace_1_1_attrs ` If True, the replacement is global (that is, all matches of the ` pattern ` regular expression in each input string are rewritten), otherwise the ` rewrite ` substitution is only made for the first ` pattern ` match. |

## Public attributes

### replace_global_

```
bool tensorflow::ops::RegexReplace::Attrs::replace_global_ = true
```

## Public functions

### ReplaceGlobal

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RegexReplace::Attrs::ReplaceGlobal(
  bool x
)
```

If True, the replacement is global (that is, all matches of the
`
pattern
`
regular expression in each input string are rewritten), otherwise the
`
rewrite
`
substitution is only made for the first
`
pattern
`
match.


Defaults to true