// This file is autogenerated, DO NOT EDIT
// query-dsl/regexp-syntax.asciidoc:50

[source, python]
----
resp = client.index(
    index="my-index-000001",
    id="1",
    document={
        "my_field": "a\\b"
    },
)
print(resp)
----
