// This file is autogenerated, DO NOT EDIT
// text-structure/apis/test-grok-pattern.asciidoc:60

[source, python]
----
resp = client.text_structure.test_grok_pattern(
    grok_pattern="Hello %{WORD:first_name} %{WORD:last_name}",
    text=[
        "Hello John Doe",
        "this does not match"
    ],
)
print(resp)
----
