# Правило, задающее маску для людей и автомобилей

Правило позволяет задать маску для фамилии, имени, отчества, телефонов, электронной почты и дополнительных полей, а в заявке для автомобиля. Задать маску можно с помощью регулярного выражения или шаблона.

Регулярное выражение применяется ко всему тексту, а шаблон - посимвольно.

> Например, необходимо задать маску для иностранного автомобиля вида - KZ 123 DML 03.

Задайте следующее правило:

<figure><img src="/files/Ds7gTZwLi96VnQj3soPv" alt=""><figcaption></figcaption></figure>

Регулярное выражение:

```
// [a-zA-Z]([a-zA-Z]([0-9]([0-9]([0-9]([a-zA-Z]([a-zA-Z]([a-zA-Z]([0-9]([0-9])?)?)?)?)?)?)?)?)?
```

Также можно задать валидацию на данное поле, указав:

```
[A-Z]{2}[0-9]{3}[A-Z]{3}[0-9]{2}
```


---

# 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://docs.aamsystems.ru/passoffice/passoffice-guide/admin-guide-doc/konfigurirovanie/editor-rule-base/pravilo-zadayushee-masku-dlya-lyudei-i-avtomobilei.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.
