ПОИСК

Возвращает начальную позицию сегмента текста в текстовой строке. Начальную позицию для поиска можно задать в качестве необязательного параметра. В качестве текста поиска можно задать число или любую последовательность символов. Поиск не зависит от регистра. Если текст не найден, возвращается ошибка 519 (#ЗНАЧ).

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every regular expression metacharacter or operator with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Синтаксис

ПОИСК("Искомый текст"; "Текст" [; Позиция])

Искомый текст: текст, который нужно найти.

Текст: текст, в котором будет выполняться поиск.

Позиция (необязательный параметр): Позиция в тексте, с которой должен начинаться поиск.

Пример

=ПОИСК(54;998877665544) возвращает 10.

Пожалуйста, поддержите нас!