# REGEX_INVALID

`{pattern}` is not a valid JavaScript regular expression: {why}.

Code `VALIDATION`, HTTP 422. A retry of the same call fails the same way.

## Failed

search did not run your regex.

## You can

- `search` with `{"regex":"<fixed pattern>"}`: Fix the pattern.
- `search` with `{"text":"<the words>"}`: Or search the words with text.

## Tell your human

No human step needed.

Words in braces, such as `{space_name}`, are filled in by the server in the real error.
The four-part format: https://agents.tinovio.com/docs/errors?via=agent.
