# Argument-Regex

The `Argument-Regex` option determines if a part of a command is a prompt.

#### Usage

You can configure the `Argument-Regex` by editing the "config.yml" file as follows:

```yaml
# This will determine if
# a part of a command is
# a prompt.
# 
# ONLY CHANGE THE FIRST AND LAST
# I.E (.*?), {.*?}, or [.*?]
Argument-Regex: <.*?>
```

In this example, the argument regex is set to `<.*?>`. Therefore a command with prompts will look like the following:

```
/test <this is a prompt>
```

#### Explanation

The `Argument-Regex` allows you to define a pattern that identifies prompts within a command. By customizing this regex, you can specify how CommandPrompter recognizes and handles command arguments as prompts.

{% hint style="info" %}
To allow for reserved regex tokens like () and \[], CommandPrompter escapes the first and last character of this configuration.
{% endhint %}

#### Example

To modify the argument regex pattern, use the following configuration:

```yaml
Argument-Regex: (.*?)
```

This will set the argument regex to `(.*?)` for identifying command prompts.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cyr1en.gitbook.io/commandprompter/configuration/command-prompter-configuration/argument-regex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
